// Allison Obourn
// CS 142 - lecture 34

// Client program to test the generic version of our ArrayList
// Creates an empty ArrayList, adds numbers 0 - 4 inclusive
// in order smallest to greatest and then adds a number in the middle
// finally, prints out the list.

public class ListMain {
    public static void main(String[] args) {
        ArrayList142<Integer> list = new ArrayList142<>();
        for (int i = 0; i < 5; i++) {
            list.add(i);
        }
        list.add(2, 7);
        System.out.println(list);
        
        ArrayList142<String> list2 = new ArrayList142<>();
        list2.add("hello");
        list2.add("world");
        System.out.println(list2);
    }
}