// Adam Blank import java.util.*; public class MoreArrayList { public static void main(String[] args) { /* You must use Integer instead of int, because the * type in the <> must be an Object (not a primitive * type. */ ArrayList list = new ArrayList(); list.add(1); list.add(2); System.out.println(list); } }