wesentliche Bestandteile

public class Zahl 
   implements Comparable<Zahl> {
      public int compareTo(Zahl that) { .. }
}

Zahl [] a =
   { new Zahl (3), new Zahl (1), new Zahl (4) };
Arrays.sort(a);



Johannes Waldmann 2008-06-18