Java下,数组转集合,集合转数组!
String[] strs = new String[] {"34","33","23","12","45"}; List<String> list = new ArrayList<String>(); //数组转集合 list = Arrays.asList(strs); //集合转数组 String[] tags = list.toArray(new String[list.size()]);
String[] strs = new String[] {"34","33","23","12","45"}; List<String> list = new ArrayList<String>(); //数组转集合 list = Arrays.asList(strs); //集合转数组 String[] tags = list.toArray(new String[list.size()]);