001package headfirst.adapter.iterenum; 002 003import java.util.Arrays; 004import java.util.Enumeration; 005import java.util.List; 006 007@SuppressWarnings("rawtypes") 008public class IteratorEnumerationTestDrive { 009 public static void main (String args[]) { 010 List<String> l = Arrays.asList(args); 011 Enumeration enumeration = new IteratorEnumeration(l.iterator()); 012 while (enumeration.hasMoreElements()) { 013 System.out.println(enumeration.nextElement()); 014 } 015 } 016}