class Test { public static void main(String[] args){ LinkedList xs = new LinkedList(); xs.add(new Byte(0)); xs.add(new Byte(0)); Byte x = Collections.max(xs, new ByteComparator()); LinkedList ys = new LinkedList(); ys.add("zero"); ys.add("one"); // naechste Zeile fuehrt jetzt zu einem compile-error: String y = Collections.max(ys, new ByteComparator()); } }