1.Generic methods
Thinking In Java 4th Edition p449
"In addition, if a method is static, it has no access to the generic type parameters of the class, so if it needs to use genericity it must be a generic method."
上面引用的话表明,Generic class里的静态方法无法访问类中的泛化类型参数,所以需要使用泛化方法。
public class GenericMethods {
public <T> void f (T x) {
System