📜  Arraylist 字符串转字符 java 代码示例

📅  最后修改于: 2022-03-11 14:52:22.533000             🧑  作者: Mango

代码示例1
String str = "abcd...";
ArrayList chars = new ArrayList();
for (char c : str.toCharArray()) {
  chars.add(c);
}