Implement the method contains , as described in Exercise 7 of Chapter 8 , for each of the classes Array List and Linked List .
Exercise 7:
Suppose that the ADT list has a method contains that tests whether the list contains a given entry. Write specifications for such a method.