MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

collections/MapOfList.java:32–40  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

30 Arrays.asList(new Rat("Freckly")));
31 }
32 public static void main(String[] args) {
33 System.out.println("People: " + petPeople.keySet());
34 System.out.println("Pets: " + petPeople.values());
35 for(Person person : petPeople.keySet()) {
36 System.out.println(person + " has:");
37 for(Pet pet : petPeople.get(person))
38 System.out.println(" " + pet);
39 }
40 }
41}
42/* Output:
43People: [Person Dawn, Person Kate, Person Isaac, Person

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected