public static String groupify(String str, int n){ if(str.length() == 0) return str; char c = str.charAt(0); String s = " "; if(str.length() % n == 1) return c + s + groupify(str.substring(1), n); return c + groupify(str.substring(1), n); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)