1、List转为String[]
List list = new ArrayList();
String[] stringArray = new String[2];
list.toArray(stringArray);
//String str[] = list.toArray(new String[]{});
2、String[]转为List
String[] stringArray = new String[2];
List list = java.util.Arrays.asList(stringArray);
List list = new ArrayList();
String[] stringArray = new String[2];
list.toArray(stringArray);
//String str[] = list.toArray(new String[]{});
2、String[]转为List
String[] stringArray = new String[2];
List list = java.util.Arrays.asList(stringArray);