java string join arraylist
// You can't just do String.join(", ", list) because
// the list has to be a String[]. This code works on
// everything.
list.stream().map(Object::toString).collect(Collectors.joining(", "));
java string join arraylist
// You can't just do String.join(", ", list) because
// the list has to be a String[]. This code works on
// everything.
list.stream().map(Object::toString).collect(Collectors.joining(", "));
java join list of strings
String result = String.join(",", list);
java join list as string
List<String> list = Arrays.asList("a","b","c");
String result = String.join(",", list);
System.out.println(result); //prints a,b,c
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us