Trace Tabla Help

Can some one help me to do a trace table of this program,

import java.io.*;

class SelectionSort{

publicstaticvoid main(String[]args){

int[]numbers={40, 12, 37, 4, 25};

selectionSort(numbers);

displayArray(numbers);

}

publicstaticvoid selectionSort(int[]numbers){

int temp;

for(int i=0;i<numbers.length; i++){

int minIndex=i;

for(int j=i+1;j<numbers.length; j++)

{

if(numbers[minIndex]>numbers[j]){

minIndex=j;

}

}

if (minIndex!= i){

temp=numbers[i];

numbers[i]=numbers[minIndex];

numbers[minIndex]=temp;

}

}

}

publicstaticvoid displayArray(int[]numbers){

System.out.println("After Sorting");

for(int i=0;i<5;i++){

System.out.println(numbers[i]);

}

}

}

[2199 byte] By [JavaRosaa] at [2007-11-26 19:33:56]
# 1
Quit cluttering the forums. You already have a posting on this topic. Keep the discussion in one posting so everybody knows what has already been discussed. http://forum.java.sun.com/thread.jspa?threadID=5140830&tstart=0
camickra at 2007-7-9 22:06:55 > top of Java-index,Java Essentials,Java Programming...