12 lines
284 B
Java
12 lines
284 B
Java
//: generics/SimplerPets.java
|
|
import typeinfo.pets.*;
|
|
import java.util.*;
|
|
import net.mindview.util.*;
|
|
|
|
public class SimplerPets {
|
|
public static void main(String[] args) {
|
|
Map<Person, List<? extends Pet>> petPeople = New.map();
|
|
// Rest of the code is the same...
|
|
}
|
|
} ///:~
|