它应该很简单,但我找不到简单的一行答案.如何将CharSequence[]
改为String[]
?我的目标是将CharSequnce[]={"a","b","c"}
更改为List<String>
,但当我编写Arrays.asList(a)
的时候,Android Studio给出了一个错误,说所需类型是List<String>
,但所提供的是List<CharSequence>
.因此,我似乎需要先将CharSequence数组更改为Stringarray.
我也try 了Arrays.asList(Arrays.toString(e))
,但打印列表的输出将是[[a, ,b, c]]
,这不是我想要的.