Question: Q4: IN JAVA Recall the methods that we used in the Linkedlist class: . An add) method to put stuff in. .A size) method to
Q4: IN JAVA 
Recall the methods that we used in the Linkedlist class: . An add) method to put stuff in. .A size) method to get the size. A get ( ) method to get the i-th element. A contains() method to see if a particular element is already in the list. Thus, if we were to create our own data structure to do this, it might look something like: public class ourlist ( public void add (string s) public int size () public String get (int i') 7... contains() method In-Class Exercise 4: What is the signature of the contains method that should be in the template above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
