Class InsertionSorterInteractive

java.lang.Object
  extended by InsertionSorterInteractive

public class InsertionSorterInteractive
extends Object

Implements an insertion sort for integers.

Version:
1.0 2011-10-13
Author:
M. Arkin

Constructor Summary
InsertionSorterInteractive()
           
 
Method Summary
static void sortByInsertion(int[] array)
          Sorts an array of integers using the insertion-sort algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertionSorterInteractive

public InsertionSorterInteractive()
Method Detail

sortByInsertion

public static void sortByInsertion(int[] array)
Sorts an array of integers using the insertion-sort algorithm.

Parameters:
array - the array to be sorted