char[] to arraylist java code example
Example 1: Arraylist string to character java
String str = "abcd...";
ArrayList<Character> chars = new ArrayList<Character>();
for (char c : str.toCharArray()) {
chars.add(c);
}
Example 2: char arraylist java
ArrayList<Character> operations = new ArrayList<Character>();