【JAVA】String转List 1、string数据是 “1,2,3,4” 1、List<String> list=Arrays.asList(string.split(",")); 2、string数据是 实体类 1、List<实体类> userList=JSONArray.parseArray(string,实体类.class);