1 package annotator.tests; 2 3 import java.util.Date; 4 5 public class TypeParamMethod { 6 foo(T t)7 public <T> void foo(T t) { 8 System.out.println(t); 9 } 10 foo2(T t)11 public <T extends Date> void foo2(T t) { 12 System.out.println(t); 13 } 14 foo(T t, U u)15 public <T, U> void foo(T t, U u) { 16 System.out.println(t); 17 System.out.println(u); 18 } 19 foo2(T t, U u)20 public <T extends Date, U extends Date> void foo2(T t, U u) { 21 System.out.println(t); 22 System.out.println(u); 23 } 24 } 25