List<String> list = new ArrayList<String>(Arrays.asList(string.split(" , ")));
// string.split also accept regular expressions
String[] array = values.split("|", -1);
String str= "abcdef";
String[] array=str.split("(?<=G.{2})");
System.out.println(java.util.Arrays.toString(array));
List<String> list = new ArrayList<String>(Arrays.asList(scanner.nextLine().split(", ")));