blob: 4849313ec72e76672231aa66de55e2c74d3a33d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* Listing1403.java */
import java.util.*;
public class Listing1403
{
public static void main(String[] args)
{
Hashtable h = new Hashtable();
//Pflege der Aliase
h.put("Fritz","f.mueller@test.de");
h.put("Franz","fk@b-blabla.com");
h.put("Paula","user0125@mail.uofm.edu");
h.put("Lissa","lb3@gateway.fhdto.northsurf.dk");
//Ausgabe
Enumeration e = h.keys();
while (e.hasMoreElements()) {
String alias = (String)e.nextElement();
System.out.println(
alias + " --> " + h.get(alias)
);
}
}
}
|