Question: Write a static method getCommonStrings(ArrayList list1, ArrayList list2) that returns a new instance of ArrayList containing all of the strings common to both list1 and
Write a static method
getCommonStrings(ArrayList list1,
ArrayList list2)
that returns a new instance of ArrayList containing all of the strings common to both list1 and list2.
Step by Step Solution
3.35 Rating (170 Votes )
There are 3 Steps involved in it
publicstaticArrayList ... View full answer
Get step-by-step solutions from verified subject matter experts
