Iterator使用

| No Comments | No TrackBacks

import java.util.*;

public class A{
    public static void main(String[] args){
        List list=new ArrayList();
        for(int i=0;i<10;i++)
            list.add(i);
        Iterator it=list.iterator();
        while(it.hasNext())
            System.out.println(it.next());
    }
}

No TrackBacks

TrackBack URL: http://www.wujianrong.com/mt-tb.cgi/1482

Leave a comment

About this Entry

This page contains a single entry by kevinwu published on December 11, 2006 4:51 PM.

jert-基本的操作说明 was the previous entry in this blog.

使用FreeMarker生成Html静态文件(转载) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.