8 lines
119 B
Java
Executable File
8 lines
119 B
Java
Executable File
class Test {
|
|
<E extends Number> addElement2(E elem){
|
|
return(elem);
|
|
}
|
|
test(x){
|
|
x.addElement2(new Number());
|
|
}
|
|
} |