Skip to content

Instantly share code, notes, and snippets.

@micylt
Created May 8, 2015 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micylt/095b84ac6c90871fe55d to your computer and use it in GitHub Desktop.
Save micylt/095b84ac6c90871fe55d to your computer and use it in GitHub Desktop.
public static String repl(String str, int rep) {
String result = "";
for (int i = rep; i > 0; i--) {
result += str;
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment