📄 limitsofinference12.java
字号:
// generics/LimitsOfInference12.java
// TIJ4 Chapter Generics, Exercise 12, page 635
// Repeat the previous exercise using explicit type specification.
import typeinfo.pets.*;
import java.util.*;
import net.mindview.util.*;
public class LimitsOfInference12 {
static void f(Map<Person, List<? extends Pet>> petPeople) {}
public static void main(String[] args) {
f(New.<Person, List<? extends Pet>>map());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -