@@ -0,0 +1,144 @@
+public String repeatFront(String str, int n) %7B%0A  String out=%22%22;%0A  for (int i=n; i%3E0; i--) %7B%0A    out += str.substring(0, i);%0A  %7D%0A  return out;%0A%7D%0A

Create repeatFront.java