List 转 Array
List<String> list = new ArrayList<>();
String[] objects = list.toArray(new String[list.size()]);
Array 转 List
String[] resArr = new String[]{"1","2"};
List<String> res = Arrays.asList(resArr);
List 转 Array
List<String> list = new ArrayList<>();
String[] objects = list.toArray(new String[list.size()]);
Array 转 List
String[] resArr = new String[]{"1","2"};
List<String> res = Arrays.asList(resArr);