print string 3 times java code example Example: multiple string java String string = string.repeat(repeatTime);