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); } }