String类型根据逗号分隔转为list

String ids = pd.getString("IDS");//从pd里取出字符串
List idList = Arrays.asList(ids.split(","));//根据逗号分隔转化为list
原文地址:https://www.cnblogs.com/feifeicui/p/9576871.html