JavaTXCompilerInJavaTX/examples/scju/MethodGenerics.jav

18 lines
359 B
Plaintext
Raw Normal View History

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