// Tyler Mi // Here we use interface types to make our code more general and reflective // of how we are using certain variables import java.util.*; public class ArrayListClient { public static void main(String[] args) { // Examples of the object on the left side not being the same as the right side! // Critter c = new Ant(); // Phone p = new IPhone(); // Phone p = new Nokia(); List list = new LinkedList<>(); list.add(5); list.add(42); list.add(96); System.out.println(list.size()); System.out.println(list.indexOf(42)); System.out.println(list.get(2)); } }