判断集合中是否存在某个字符串对象,存在返回true,不存在返回false
list.contains("str1")
判断集合中时候存在完全一样的某个对象(所有属性都一样),存在返回true,不存在返回false
list.containsAll(Objcet obj)
转载于:https://blog.51cto.com/1197822/2157107
list.contains("str1")
list.containsAll(Objcet obj)
转载于:https://blog.51cto.com/1197822/2157107