FileDocCategorySizeDatePackage
Sorting2.javaAPI DocExample688Sat Sep 12 03:01:00 BST 1998None

Sorting2

public class Sorting2 extends Object
Sorting a primitive array without iterators.
see
com.objectspace.jgl.algorithms.Sorting
version
1.0
author
ObjectSpace, Inc.

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

    System.out.println( "Sort a primitive array of chars" );
    char c[] = { 'c", 'z", 'e", 'f", 'g", 'o", 'a" };
    CharArray cArray = new CharArray( c );
    System.out.println( "unsorted = " + c );
    Sorting.sort( cArray );
    System.out.println( "sorted   = " + c );