package homework;
import java.awt.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ArrayList01 {
public static void main(String[] args){
List li = new ArrayList();
li.add("edgvdeibn");
li.add('a');
li.add(152102);
System.out.println(li.size());
for(Object temp:li
){
System.out.println(temp);
}
System.out.println("-----------");
Iterator it =li.iterator();
while (it.hasNext()){
System.out.println(it.next());
}
}
}