Question: Write a method called equals that accepts a second list as a parameter, returns true if the two lists are equal, and returns false otherwise.
Write a method called equals that accepts a second list as a parameter, returns true if the two lists are equal, and 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
3.42 Rating (161 Votes )
There are 3 Steps involved in it
public boolean equals LinkedIntList other ListNode cu... View full answer
Get step-by-step solutions from verified subject matter experts
