做個(gè)記錄
public static void main(String[] args) {
String s = "abcde";
char[] arr = s.toCharArray();
List<Character> list = new ArrayList<>();
for (int i = 0; i < arr.length; i++) {
list.add(arr[i]);
}
System.out.println(list);
}