KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > IteratorTest


1 import java.util.*;
2
3 public class IteratorTest {
4     
5
6     public static void main(String JavaDoc [] args){
7     
8     }
9
10     public void run(){
11     
12         List l = new ArrayList();
13         l.add("j");
14         l.add("e");
15         l.add("l");
16         
17         Iterator it = l.iterator();
18         while (it.hasNext()){
19             
20         }
21     }
22 }
23
Popular Tags