Class Sorter

java.lang.Object
  |
  +--Sorter

public class Sorter
extends java.lang.Object

Simple insertion sorter


Constructor Summary
Sorter()
           
 
Method Summary
 void InsertionSort(int[] x)
          Sort the given int array.
static void main(java.lang.String[] arg)
          Run and gun
 void printIntArray(int[] x)
          Print the contents of the given integer array.
 
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

InsertionSort

public void InsertionSort(int[] x)
Sort the given int array.

Parameters:
x - the integer array to sort

printIntArray

public void printIntArray(int[] x)
Print the contents of the given integer array.

Parameters:
x - the array to print

main

public static void main(java.lang.String[] arg)
Run and gun