1: // @author Frank M. Carrano, Timothy M. Henry
2: // @version 5.0
3: nameList.getPosition("Jamie"); // Returns 3, the position of Jamie in the list
4: nameList.contains("Jill"); // Returns false, because Jill is not in the list
5: nameList.getPosition("Jill"); // Returns –4, because Jill belongs at position 4 in the list
6: nameList.getEntry(2); // Returns Carlos, because he is at position 2 in the list
7: nameList.remove("Tom");
8: nameList.remove(1);