RFR: 8197594 - String and character repeat

Ulf Zibis Ulf.Zibis at CoSoCo.de
Sun Feb 18 14:02:26 UTC 2018

Am 18.02.2018 um 06:10 schrieb Stuart Marks:
> Fair enough. I'll be less unhappy if there is a way to convert from a code point to a String, as requested by JDK-4993841. This will reduce
>      new String(Character.toChars(codepoint)).repeat(count)
> to
>      Character.toString(codepoint).repeat(count)
Shorter and maybe more logical to get a String by a String constructor, 
instead overloading toString() of Character:


More information about the core-libs-dev mailing list