split string into arraylist in java | split string and store in array java

You can use following code to split string into list

List<String> splittedStr = Arrays.asList(str.split(","));

That should work for you.