java数组转List集合
解决方法:
1.字符串数组转list
String[] arrayStr={"你好","我好","大家好"};
List<String> listStr = Arrays.asList(arrayStr);
2.Integer数组转list
Integer[] arrayInt={1,2,3};
List<Integer> listInt = Arrays.asList(arrayInt);
java数组转List集合
解决方法:
1.字符串数组转list
String[] arrayStr={"你好","我好","大家好"};
List<String> listStr = Arrays.asList(arrayStr);
2.Integer数组转list
Integer[] arrayInt={1,2,3};
List<Integer> listInt = Arrays.asList(arrayInt);
有建议,请留言!