how to write same thing several time in java code example Example: multiple string java String string = string.repeat(repeatTime);