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 empty =null;
//empty = new Empty("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 short,you need spak!");
System.out.println(news.getContent());
*/
Integer[] data ={1,2,3,4,5,6,7,8,9};
arrayGenerics(data);
}
priva
