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

8 lines
119 B
Java
Executable File

class Test {
<E extends Number> addElement2(E elem){
return(elem);
}
test(x){
x.addElement2(new Number());
}
}