Help for this page

Select Code to Download


  1. or download this
        // not as useful as closures, not even 'close'...
        Max max = new Max(){ boolean compare(Object a,Object b){ ... } };
        while(...){
            ....
        }
    
  2. or download this
       class Whatever implements Comparable
       {
           // used by generic sort (or max) routines
           public int compareTo(Object o){....}
       }