You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Test.java 328B

123456789101112131415
  1. import java.util.*;
  2. public class Test<T extends Integer> {
  3. Set<T> ints = new HashSet<T>();
  4. public Set<T> foo() {
  5. return ints;
  6. }
  7. public static void main(String[] args) {
  8. Test<Integer> t2 = new Test<Integer>();
  9. Set<Integer> ints2 = t2.foo();
  10. }
  11. }