package tests; public class Generics1 implements Cmp { public Integer a = new Integer(0x1337); public int cmpto(Integer o) { return a.intValue() - o.intValue(); } public static Cmp sb = new Generics1(); public static int lalelu = 0; public static void main(String []args) { Generics1 foo = new Generics1(); for (int i = 0; i < 0x10; i++) { System.out.printf("0x%08x\n", foo.cmpto(0x666)); System.out.printf("0x%08x\n", sb.cmpto(0x666)); } } } interface Cmp { int cmpto(T o); }