multiple string java

Java
String string = string.repeat(repeatTime);
Source

Also in Java: