Question: please solve this question using java Write the static boolean method myEquals, which takes two LinkedList objects and returns true iff the two lists have
please solve this question using java

Write the static boolean method myEquals, which takes two LinkedList objects and returns true iff the two lists have exactly the same values in the same order. Your method may not call the LinkedList equals method Examples: listl (8 6 4 2) (1 2) return value of equals (listl, true false true false false false list2): list2 (8 6 4 2) (3 4 5) (8 642) (8 6 4 2) (8 642) (8 642 7) (8 6 2) (8 647) public static boolean myEquals (LinkedList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
