import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Test { public static void main(String[] a) { String [] s=new String[] {"1","2"}; List l=new ArrayList(); l=Arrays.asList(s); System.out.println(l); } }
转载于:https://my.oschina.net/u/3060369/blog/1527310