mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
14 lines
443 B
Java
14 lines
443 B
Java
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
Map<Person, TelephoneNumber> phonebook =
|
|
new HashMap<Person, TelephoneNumber>();
|
|
|
|
TelephoneNumber a = new TelephoneNumber("01636280491");
|
|
phonebook.put(new Person("Martin", "Thoma"), a);
|
|
phonebook.put(new Person("Max", "Mustermann"), a);
|
|
System.out.println(phonebook);
|
|
}
|
|
}
|