How can you join the elements of a Collection of Strings? - Cracking the Java Coding Interview

preview_player
Показать описание
Cracking the #Java #Coding #Interview - Question 167: How can you join the elements of a Collection of Strings?
Рекомендации по теме
Комментарии
Автор

I always used Collector, but this is much simpler.

vasiliigulevich
Автор

I understand why it's not part of the Collection interface, but it still trips me up some times and I have to google it again. Otherwise I really like using this method.

Lucario
Автор

Thanks a lot to give a such relevant content to the community. ❤

Talaria.School
Автор

Lets say i have a process that has loop and each loop has a string that will accumulate on one string.. so for that process its better for me to wrap that loop process up into an iterable interface rather than just using string builder?

mfadhilal-fatih
Автор

Useless facts that everybody knows part 167 😅

brandpcalderon