2018年4月12日
摘要: 泛型方法和接口 一,泛型 1,声明泛型: 返回值前使用<> 2,泛型方法和static没有任何关系 例: public static <T> T getLastOne(ArrayList<T> arrayList){ if(arrayList.size() == 0){ returen null; 阅读全文
posted @ 2018-04-12 19:33 北冥丶中郎将 阅读(131) 评论(0) 推荐(0) 编辑