Java 泛型核心概念
1. 学习泛型类、泛型方法、泛型参数
2. 泛型的上限、下限
package IMF;
public class JavaGenerics {
public static void main(String[] args) {
// Empty empty = null; //empty = new Empty("spark");
// System.out.println("Content: "+ empty.getItem());
// Empty<String,Integer> empty = null; //empty = new Empty<String,Integer>("Spark",6); //empty = new Empty ("Spark",99.9999);
// System.out.println(empty.getKey() + "->" + empty.getValue());
// log(empty); /*News news=null; news=new ITNews("Life is sh
}
}

