【发布时间】:2021-10-21 14:43:27
【问题描述】:
我想将此String 转换为ArrayList
字符串
["one","two","three"]
我用过这个方法
List<String> logopath = Arrays.asList(pos.split("\\s*,\\s*"));
我从logopath得到这个输出
0 = "["one""
1 = ""two""
2 = ""three"]"
但我希望logopath 的输出是这样的:
0 = "one"
1 = "two"
2 = "three"
【问题讨论】:
标签: java android arrays string list