Repeat a String a number of times Mar 7, 2016 This example shows how to repeat a String a given number of times. "AAA" = String.duplicate("A", 3) "HELLO HELLO " = String.duplicate("HELLO ", 2)