Class SortArray

java.lang.Object
  |
  +--SortArray

public class SortArray
extends java.lang.Object

Ordinamento di array tramite SelectionSort


Constructor Summary
SortArray()
           
 
Method Summary
static void sort(Comparabile[] a, int n)
          Selection Sort generico
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortArray

public SortArray()
Method Detail

sort

public static void sort(Comparabile[] a,
                        int n)
Selection Sort generico
Parameters:
a - Array generico di oggetti di tipo Comparabile
n - Indice ultimo elemento dell'array