Question: Image that you had a working implementation of the arrayList class that you wrote for integers. Write a method equals(ArrayList list2) that you could add

 Image that you had a working implementation of the arrayList class

Image that you had a working implementation of the arrayList class that you wrote for integers. Write a method equals(ArrayList list2) that you could add to your arraylist class. The equals(ArrayList Iist2) method should take a second list as a parameter and that returns true if the two lists are equal and that returns false otherwise. Two lists are considered equal if they store exactly the same values in exactly the same order and have exactly the same length

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!