is there any way to check if a collection contain a value or more with better performance than looping twice with contains?
in other meaning something that would loo
You have to search each string.
UPDATED
List list=new ArrayList(); list.add("Joe"); list.add("Jasha"); if(person.containsAll(list)) { //do something }