how to print n times space in java vs code example Example: multiple string java String string = string.repeat(repeatTime);