标签:
public class Test<T> { private T a; public Test(T a) { this.a = a; } public T getA() { return a; } public void setA(T a) { this.a = a; } public static void main(String[] args) { Test<String> test = new Test<>("test"); System.out.println(test.getA()); } }
标签:
原文地址:http://www.cnblogs.com/zhisuoyu/p/5285431.html