import java.util.*; public class listDriver { public static void main(String[] args) //takes a seed for the random number generator, fills a list with random Integers, and prints them out using an Iterator { Random g = new Random(Integer.parseInt(args[0])); //myArrayList list = new myArrayList(); myLinkedList list = new myLinkedList(); for(int x = 1; x <= 20; x++) { list.add(g.nextInt() % 20); } Iterator i = list.iterator(); while(i.hasNext()) { System.out.println(i.next()); } } }