-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: core-libs
The methods `public StringBuilder repeat(int codePoint, int count)` and `public StringBuilder repeat(CharSequence cs, int count)` have been added to `java.lang.StringBuilder` and `java.lang.StringBuffer` to simplify the appending of multiple copies of characters or strings. For example, `sb.repeat('-', 80)` will insert 80 hyphens into the value of the `java.lang.StringBuilder sb` object.