Question: Write a contains method for the LinkedList class that searches for a given item by sequentially searching from both ends of the list simultaneously. The
Write a "contains" method for the LinkedList class that searches for a given item by sequentially searching from both ends of the list simultaneously. The signature for your method should be: public boolean contains(Object obj). You may refer to the code for the LinkedList class presented in the course, if you wish.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
