public class Test{
private T name;
public T getName() {
return name;
}
public void setName(T name) {
this.name = name;
}
public static void main(String[] args) {
TeststringTest = new Test ();
stringTest.setName("aaa");
System.out.println(stringTest.getName());
TestintegerTest = new Test ();
integerTest.setName(1111);
System.out.println(integerTest.getName());
}
}