@@ -0,0 +1,233 @@
+// http://codingbat.com/prob/p128796%0A%0Apublic String repeatFront(String str, int n) %7B%0A  StringBuilder output = new StringBuilder();%0A  while (n %3E= 0) %7B%0A    output.append(str.substring(0, n));%0A    n--;%0A  %7D%0A  return output.toString();%0A%7D%0A

Create repeatFront.java