com.mindbright.util
Class ArraySort

java.lang.Object
  extended by com.mindbright.util.ArraySort

public final class ArraySort
extends java.lang.Object

Sort an array or part of an array.


Nested Class Summary
static interface ArraySort.Comparable
          The elemnts in the array should implement this interface
 
Constructor Summary
ArraySort()
           
 
Method Summary
static void sort(ArraySort.Comparable[] arr)
           
static void sort(ArraySort.Comparable[] arr, int start, int end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySort

public ArraySort()
Method Detail

sort

public static void sort(ArraySort.Comparable[] arr)

sort

public static void sort(ArraySort.Comparable[] arr,
                        int start,
                        int end)