Menu

[Solved] P1610 Add Method Boolean Contains Object Obj Checks Whether Linkedlist Implementation Cont Q37168651

P.16.10

Add a method boolean contains(Object obj) that checks whetherour LinkedList implementation contains a given object. Implementthis method by directly traversing the links, not by using aniterator.
Use the equals method to determine whether obj equals node.data fora given node.

need Test Program

Expert Answer


Answer to P.16.10 Add a method boolean contains(Object obj) that checks whether our LinkedList implementation contains a given obj… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *