/**
* Returns a string whose value is the concatenation of this
* string repeated {@code count} times.
* <p>
* If this string is empty or count is zero then the empty
* string is returned.
*
* @param count number of times to repeat
*
* @return A string composed of this string repeated
* {@code count} times or the empty string if this
* string is empty or count is zero
*
* @throws IllegalArgumentException if the {@code count} is
* negative.
*
* @since 11
*/
public String repeat(int count) {
Webrev: http://cr.openjdk.java.net/~jlaskey/8197594/webrev-02/index.html
JavaDoc: http://cr.openjdk.java.net/~jlaskey/8197594/String.html
- csr for
-
JDK-8198296 String#repeat
-
- Closed
-
- duplicates
-
JDK-6984084 (str) n times repetition of character constructor for java.lang.String
-
- Closed
-
- relates to
-
JDK-8221400 java/lang/String/StringRepeat.java test requests too much heap
-
- Resolved
-
-
JDK-8055862 Provide a String repeat method
-
- Closed
-
-
JDK-8198955 String#repeat loop optimization
-
- Resolved
-
-
JDK-6984084 (str) n times repetition of character constructor for java.lang.String
-
- Closed
-
-
JDK-8170348 (str) Appendable.appendN(char, int) method to append multiple copies of char
-
- Closed
-
-
JDK-4509119 New append()/insert() methods for StringBuffer
-
- Closed
-