Is there any built-in method in Java which allows us to convert comma separated String to some container (e.g array, List or Vector)? Or do I need to write custom code for t
You can first split them using String.split(","), and then convert the returned String array to an ArrayList using Arrays.asList(array)
String.split(",")
array
ArrayList
Arrays.asList(array)