JavaCompilerCore/examples/hoti/Generic.jav
2013-10-18 13:33:46 +02:00

22 lines
237 B
Java
Executable File

public class Generic<X> extends Tester
{
X elem;
public setElement(e){
elem=e;
}
public X getElement(){
return elem;
}
}
public class Tester{
public meth(String e){
x;
x.setElement("");
return(x.getElement());
}
}