标签:
Java 泛型方法
@author ixenos
public static <T> T getMiddle(T...a) {...}
String middle = ArrayAlg.<String>getMiddle("I‘m","ixenos");
String middle = ArrayAlg.getMiddle("I‘m","ixenos");
double middle = ArrayAlg.getMiddle(3.14 , 1234 , 0);
found:
java.lang.Object&java.io.Serializable&java.lang.Comparable<? extends java.lang.Object&java.io.Serializable&java.lang.Comparable<?>>
标签:
原文地址:http://www.cnblogs.com/ixenos/p/5652031.html