⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cient.java

📁 Java与模式 源代码
💻 JAVA
字号:
package com.javapatterns.iterator.linkedlist;

import java.util.Iterator;
import java.util.LinkedList;

public class Cient
{
    private static LinkedList ll = new LinkedList();
    private static Iterator it;

    public static void main(String[] args)
    {
        ll.add(new String("Age: "));
        ll.add(new Integer(35));
        ll.add(new String("Career: "));
        ll.add(new String("Bug selling"));

        it = ll.listIterator(0);

        while (it.hasNext())
        {
            System.out.println(it.next());
        }


    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -