目录
数组转List
List转String
String[] arr = new String[] {"nnn", "io"};
List list = Arrays.asList(arr);
System.out.println(list);
String result = String.join("-",list) ;
System.out.println(result);
List转String[]
String[] strArr = (String[]) list.toArray(); System.out.println("\nString[]==>\n" + String.join(",",strArr));