SyntaxFix
Write A Post
Hire A Developer
Questions
In java 8 you can also use a reducer, something like:
public static String join(List<String> strings, String joinStr) { return strings.stream().reduce("", (prev, cur) -> prev += (cur + joinStr)); }