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
Java 8's String.join provides a tidy way to do this in conjunction with Collections.nCopies:
// say hello 100 times System.out.println(String.join("", Collections.nCopies(100, "hello")));