April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Polimorfismo novamente
public static SelSort(Comparable[] list) {
  Comparable temp;
  int small;
  for(int i = 0; i < list.length - 1; i++) {
    small = i;
    for(int j = i + 1; j < list.length; j++) {
      if( list[j].compareTo(list[small]) < 0)
        small = j;
    }
    temp = list[i];
    list[i] = list[small];
    list[small] = list[i];
  }
}