Starlight*_*
2009-11-03 05:55:39 UTC
.....................
import java.util.*;
class Iterator2{
public static void main(String[] args){
ArrayList
int i;
for(i = 0; i < 10; i++){
int numbers = (i+1);
store.add(numbers);
}
Iterator
while (MyIterator.hasNext()){
int value = MyIterator.next();
System.out.println(value);
}
System.out.println ("The Array List Contains " + i + " items.");
}
}