18 lines
359 B
Java
Executable File
18 lines
359 B
Java
Executable File
import java.util.Vector;
|
|
import java.io.Serializable;
|
|
import java.lang.Comparable;
|
|
|
|
public class MethodGenerics<typ1> {
|
|
|
|
public typ1 TestMethode(String wert1, typ1 that, String wert2) {
|
|
return null;
|
|
}
|
|
|
|
<t extends Vector> t TestMethode2() {
|
|
return null;
|
|
}
|
|
|
|
<u extends Vector & Comparable & Serializable> u TestMethode3() {
|
|
return null;
|
|
}
|
|
} |