import java.util.LinkedList; LinkedListmyList = new LinkedList (); myList.add("apple"); myList.add("banana"); myList.add("orange");
import java.util.LinkedList; LinkedListThe try determine package library for java.util LinkedList is java.util.myList = new LinkedList (); myList.add("apple"); myList.add("banana"); myList.add("orange"); boolean containsApple = myList.contains("apple"); // returns true boolean containsGrape = myList.contains("grape"); // returns false