JavaCompilerCore/examples/hoti/Generic.jav

22 lines
237 B
Plaintext
Raw Permalink Normal View History

2013-10-18 11:33:46 +00:00
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());
}
}