📄 stringlist.java
字号:
package com.ibm.awb.misc;import java.util.Enumeration;import java.util.Vector;import java.util.NoSuchElementException;/* * @(#)StringList.java * * IBM Confidential-Restricted * * OCO Source Materials * * 03L7246 (c) Copyright IBM Corp. 1996, 1998 * * The source code for this program is not published or otherwise * divested of its trade secrets, irrespective of what has been * deposited with the U.S. Copyright Office. */public class StringList implements Enumeration { private Vector _list = new Vector(); private int _index = 0; public final void addString(String str) { _list.addElement(str); } public boolean hasMoreElements() { return _index < _list.size(); } public Object nextElement() { if (!hasMoreElements()) { throw new NoSuchElementException("no more elements."); } Object obj = null; try { obj = _list.elementAt(_index); } catch (Exception excpt) { throw new NoSuchElementException(excpt.getMessage()); } return obj; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -