Java Split String in die Liste
List<String> list = new ArrayList<String>(Arrays.asList(string.split(" , ")));
// string.split also accept regular expressions
Erorri Motrali
List<String> list = new ArrayList<String>(Arrays.asList(string.split(" , ")));
// string.split also accept regular expressions
String str= "abcdef";
String[] array=str.split("(?<=\\G.{2})");
System.out.println(java.util.Arrays.toString(array));