How can I easily check to see whether all the elements in one ArrayList are all elements of another ArrayList?
Use Collection.containsAll():
boolean isSubset = listA.containsAll(listB);
1.4m articles
1.4m replys
5 comments
57.0k users