string类型转换List<string> 像List<String>lists=new List<String>; lists中有size属性,不要数组string 20
String[]words={...};List<String>list=newArrayList<String>(words.length);for(Strings:w...
String[] words = { ... };
List<String> list = new ArrayList<String>(words.length);
for (String s : words) {
list.add(s);
} 展开
List<String> list = new ArrayList<String>(words.length);
for (String s : words) {
list.add(s);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询