fork download
  1. class C {
  2. static void m(Object o) {
  3. System.out.println("m(o)");
  4. }
  5. static void m(String s) {
  6. System.out.println("m(s)");
  7. }
  8. static void m(Integer i) {
  9. System.out.println("m(i)");
  10. }
  11. static <T> void f(T t) {
  12. m(t) ;
  13. }
  14.  
  15. public static void main(String[] args) {
  16. f("abc");
  17. }
  18. }
Success #stdin #stdout 0.09s 54636KB
stdin
Standard input is empty
stdout
m(o)