/** * Title: ArrayListPlay * Description: Simple example of using ArrayList * @author hollingd@cs.rpi.edu */ import java.util.*; class ArrayListPlay { public static void main(String [] args ) { // Create an ArrayList object ArrayList x = new ArrayList(); // Populate with 10 random Integer objects Random r = new Random(); for (int i=0;i<10;i++) { x.add( new Integer(r.nextInt(100))); } // print using random access (get) for (int i=0;i