In Java, write an equals method suitable for theDoubleLinkedSequence class.
The method takes a single argument, a DoubleLinkedSequence (oran Object) and returns true if both collections contain the samevalues in the same order (in sequences, ordermatters).
Make sure your equals method is efficient and exits as soon asthey are determined to be not equal.
Note: The data structure contains doubles, this isnot about doubly?linked lists.
Expert Answer
An answer will be send to you shortly. . . . .