Java中list操作
String a="123,456,789,abc,def"; List<String> idList = Arrays.asList(a.split(","));
List通过下标取对象
//结果 789 idList.get(2)
判断list集合中存在某个元素
//结果true System.out.println(idList.contains("123"));
String a="123,456,789,abc,def"; List<String> idList = Arrays.asList(a.split(","));
List通过下标取对象
//结果 789 idList.get(2)
判断list集合中存在某个元素
//结果true System.out.println(idList.contains("123"));