Selection Sort
Public void SelectionSort(int a[]) {
Int temp, max, maxIndex;
For (int first = 0; first<(a.length –1);first++){
Max = a[first];
maxIndex = first;
For(int look = first+1;look<a.length;look++)
If( a[look] > max) {
Max = a[look] ;
maxIndex = look ;
}
swapArray(a,first,maxIndex);
}