filmov
tv
Java 11 Development Features Part 4 - String repeat() method

Показать описание
Java 11 Development Features Part 4 - String repeat() method
Returns a string whose value is the concatenation of this string repeated count times.
If this string is empty or count is zero then the empty string is returned.
Params:
count – number of times to repeat
Returns:
A string composed of this string repeated count times or the empty string if this string is empty or count is zero
String strl = " ";
Returns a string whose value is the concatenation of this string repeated count times.
If this string is empty or count is zero then the empty string is returned.
Params:
count – number of times to repeat
Returns:
A string composed of this string repeated count times or the empty string if this string is empty or count is zero
String strl = " ";