home *** CD-ROM | disk | FTP | other *** search
- import java.util.Dictionary;
- import java.util.Hashtable;
-
- class HTDemo {
- public static void main(String[] var0) {
- Hashtable var1 = new Hashtable();
- var1.put("title", "The Java Handbook");
- var1.put("author", "Patrick Naugnton");
- var1.put("email", "naughton@starwave.com");
- var1.put("age", new Integer(30));
- show(var1);
- }
-
- static void show(Dictionary var0) {
- System.out.println("Title: " + var0.get("title"));
- System.out.println("Author: " + var0.get("author"));
- System.out.println("Email: " + var0.get("email"));
- System.out.println("Age: " + var0.get("age"));
- }
- }
-