FileDocCategorySizeDatePackage
Functions7.javaAPI DocExample714Sat Sep 12 03:01:00 BST 1998None

Functions7

public class Functions7 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Array array = new Array();
    array.add( "ape" );
    array.add( "giraffe" );
    array.add( "lizard" );

    BinaryPredicate comparator = new BinaryComposePredicate
      ( 
      new GreaterNumber(), 
      new LengthString(), 
      new LengthString() 
      );
    System.out.println( "before = " + array );

    Sorting.sort( array, comparator );
    System.out.println( "after = " + array );