import java.util.*; public class ListClient { public static void main(String[] args) { // Implementing our own IntList interface IntList list1 = new ArrayIntList(); System.out.println("list1"); processList(list1); System.out.println(); IntList list2 = new LinkedIntList(); System.out.println("list2"); processList(list2); // Example using Java's built in Collections // ArrayIntList -> ArrayList // LinkedIntList -> LinkedList // IntList -> List List list1 = new ArrayList(); List list2 = new LinkedList(); // Wrapper classes // int -> Integer // double -> Double // boolean -> Boolean List list3 = new ArrayList<>(); // diamond operatror } public static void processList(IntList list) { list.add(18); list.add(27); list.add(93); System.out.println(list); list.remove(1); System.out.println(list); } }