Android ApplicationAndroid日常记录 1234567String str="112,123,123,123";//根据逗号分隔到List数组中 String str2=str.replace(" ", "")//去掉所用空格List<String> list= Arrays.asList(str2.split(","))//list的结果就是[113,123,123,123]