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
Commons Lang StringUtils.repeat()
Usage:
String str = "abc"; String repeated = StringUtils.repeat(str, 3); repeated.equals("abcabcabc");