Is there a way to improve the below Selection Sort code to make it more efficient?
int a, b, smallest, temp;
for(a = 0; a < numIntegers - 1; a++)
{
smallest = a;;
numComp++;
for(b = a+1; b < numIntegers; b++)
{
if(Integer.parseInt(list[b].toString()) < Integer.parseInt(list[smallest].toString()))
{
smallest = b;
}
temp = Integer.parseInt(list[a].toString());
list[a] = list[smallest];
list[smallest] = temp;
numSwaps++;
}
}