With Strings, we need to use the equals method to determine if two Strings are the same.
Let’s write an equals method for the ArrayList class that returns true if two ArrayLists are the same, and false if the ArrayLists are not identical. An ArrayList is identical if all of the values at each index are the same.