3 lines
112 B
Java
3 lines
112 B
Java
public static String repeat(String str, int times){
|
|
return new String(new char[times]).replace("\0", str);
|
|
}
|