Data stored in hashtable.
- By Chang Sau Sheong
- April 24, 2001
Component Java
Build Wizards Quickly Using a Swing-Based Wizard Framework
Chang Sau Sheong
Listing 7. Data stored in hashtable.
. . .
import java.util.*;
public class WizardData {
Hashtable data = new Hashtable();
public Object get(String key) {
return data.get(key);
}
public void put(String key, Object value) {
data.put(key,value);
}
. . .
About the Author
Chang Sau Sheong is vice president of product engineering at elipva Ltd. (formerly known as sstarfire.com). He can be contacted at [email protected].