I\'m looking for a simple commons method or operator that allows me to repeat some string n times. I know I could write this using a for loop, but I wish to avoid f
Here's a way to do it using only standard String functions and no explicit loops:
// create a string made up of n copies of s repeated = String.format(String.format("%%%ds", n), " ").replace(" ",s);