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();
10 public static int lalelu = 0;
12 public static void main(String []args) {
13 Generics1 foo = new Generics1();
14 System.out.printf("0x%08x\n", foo.cmpto(0x666));
15 System.out.printf("0x%08x\n", sb.cmpto(0x666));