OnJava8-Examples/generics/SimplerPets.java

14 lines
342 B
Java
Raw Normal View History

2015-09-07 11:44:36 -06:00
// generics/SimplerPets.java
2015-06-15 17:47:35 -07:00
// <20>2015 MindView LLC: see Copyright.txt
import typeinfo.pets.*;
import java.util.*;
import com.mindviewinc.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...
}
2015-09-07 11:44:36 -06:00
}
/* Output: (None) */