Replace concat String to append in StringBuilder parameters
Pavel Rappo
pavel.rappo at oracle.com
Mon Aug 11 17:31:43 UTC 2014
Sorry, I should've written this:
Iterable<?> whatever = ...
StringJoiner joiner = new StringJoiner(", ");
whatever.forEach(w -> joiner.add(w.toString()));
String s = joiner.toString();
-Pavel
On 11 Aug 2014, at 17:17, Pavel Rappo <pavel.rappo at oracle.com> wrote:
> Iterable<?> whatever = ...
> whatever.forEach(w -> builder.append(w.toString());
> String s = builder.toString();
More information about the core-libs-dev
mailing list