3 public class Generics1 implements Cmp<Integer> {
4 public Integer a = new Integer(0x1337);
5 public int cmpto(Integer o) {
6 return a.intValue() - o.intValue();
9 public static Cmp<Integer> sb = new Generics1();
11 public static void main(String []args) {
12 Generics1 foo = new Generics1();
13 System.out.printf("0x%08x\n", foo.cmpto(0x666));
14 System.out.printf("0x%08x\n", sb.cmpto(0x666));