Question: Write an equals method suitable for the DoubleLinkedSequence class from assignment 1. The method takes a single argument, a DoubleLinkedsequence (or an Object if you

Write an equals method suitable for the DoubleLinkedSequence class from assignment 1. The method takes a single argument, a DoubleLinkedsequence (or an Object if you prefer to be more compatible) and returns true if both collections contain the same values in the same order (in sequences, order matters). Make sure your equals method is efficient and exits as soon as they are determined to be not equal. Write an equals method suitable for the DoubleLinkedSequence class from assignment 1. The method takes a single argument, a DoubleLinkedsequence (or an Object if you prefer to be more compatible) and returns true if both collections contain the same values in the same order (in sequences, order matters). Make sure your equals method is efficient and exits as soon as they are determined to be not equal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
