org.gjt.btools.utilities
Class Sorter

java.lang.Object
  |
  +--org.gjt.btools.utilities.Sorter

public class Sorter
extends java.lang.Object

Provides mechanisms for sorting arrays. Better mechanisms are provided in java.util.Array in JDK1.2; these are merely provided for code that must be compatible with JDK1.1.


Constructor Summary
Sorter()
           
 
Method Summary
static void sort(int[] data)
          Sort an array of integers in ascending order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorter

public Sorter()
Method Detail

sort

public static void sort(int[] data)
Sort an array of integers in ascending order. Uses a quadratic time insertion sort.

Parameters:
data - the array to be sorted.


Copyright © 1998-2001, Ben Burton
This software is released under the GNU Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).