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

📄 demo.java

📁 《Java程序设计与应用》-张仕斌-源程序 《Java程序设计与应用》-张仕斌-源程序
💻 JAVA
字号:
/*
 * Demo.java
 *
 * Created on 2006年9月15日, 下午7:12
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package example7_8;
import java.io.*;
import java.util.*;
/**
 *
 * @author Administrator
 */
public class Demo implements Enumeration{
    
    /** Creates a new instance of Demo */
    public Demo() {
    }
    private Enumeration files;
    public Demo(Vector files){this.files = files.elements();}
		public boolean hasMoreElements(){return files.hasMoreElements();}
		public Object nextElement() {
			try{return new FileInputStream(files.nextElement().toString());} 
			catch (Exception e){return null;}
		}
    
}

⌨️ 快捷键说明

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