forked from JavaTX/JavaCompilerCore
22 lines
237 B
Java
Executable File
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());
|
|
}
|
|
} |