1、数组 转 ArrayListpublic static void main(String[] args) {
String[] strArr = {"测试1","测试2","测试3"};
List<String> strList = Arrays.asList(strArr);
for (int i = 0; i < strList.size(); i++) {
System.out.println(strList.get(i));
}
}2、ArrayList 转 数组public static void main(String[] arg...
阅读全部