Write a static method getCommonStrings(ArrayList list1, ArrayList list2) that returns a new instance of ArrayList containing all

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 list2.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: