How to convert a String without separator to an ArrayList.
ArrayList
My String is like this:
String str = \"abcd...\"
String myString = "xxx"; ArrayList myArrayList = myString.chars().mapToObj(x -> (char) x).collect(toCollection(ArrayList::new)); myArrayList.forEach(System.out::println);