OnJava8-Examples/generics/SimplerPets.java

13 lines
325 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: generics/SimplerPets.java
2015-05-29 14:18:51 -07:00
// <20>2015 MindView LLC: see Copyright.txt
2015-04-20 15:36:01 -07:00
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...
}
} ///:~