String list0 = "1,2,3,4,5"; ArrayList<String> splist1=new ArrayList<String>(Arrays.asList(list0.split(",")));