Possible Duplicate:
How to compare two arraylist?
I have two String ArrayLists of different sizes. I need to write a method that returns true iff List A (larger list) contains every value of List B (smaller list). How would I go about writing such a method?
Thanks!
Have a look at
List.containsAll().Sometimes a peek at the documentation is all it takes (even for homework ;]).