Firstly I created the ArrayList of Strings:
List<List<String>> array1 = new ArrayList<List<String>>();
Then after populating it with data and doing a print:
[John, Smith, 120]
[Albert, Einstein, 170]
Now I want to loop through the list and do a comparison with say String[] array2 = {"Albert", "Einstein", "170"}
and I've tried so far:
if (array1.get(i).equals(array2)) { blah }
However this is not working, I basically want traverse the arraylist and find if my array2 gets a match or not. How can I make this work?