package study;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
public class Demo {
public static void main(String[] args){
Collection c=new ArrayList();
c.add(“danie”);
c.add(“who”);
c.add(“is”);
Iterator i=c.iterator();
while(i.hasNext())
System.out.println(i.next());
}
}