Exactly!! Change d condition to less then zero
Also use compareToIgnoreCase instead of compareTo and compare with names[i] instead of names[minPos]
Type: Posts; User: purvesh
Exactly!! Change d condition to less then zero
Also use compareToIgnoreCase instead of compareTo and compare with names[i] instead of names[minPos]
Hey,
The code shows that u r assinging names to temp variable...
how u can assign a string array to string variable?
Apart from this, every thing looks correct to me.