泛型 将类型参数化的类、方法、接口。 类型作为实参。
语法 class GeneralType </Type/>{ Type object; public GeneralType(Type object){ this.object = object } public Type getObj(){ return object; } } 泛型一般使用 查到表格记录一下
原始类型 封装类 boolean Boolean char Character byte Byte short Short int Integer long Long float Float double Double