What interface do you implement to do the sorting?

India
February 22, 2007 3:38am CST
What interface do you implement to do the sorting? And an example code:
2 responses
@raghwagh (1527)
• India
4 Mar 07
If you want to sort string or int or float or double then just add the data in the Array and then sort using following code Array.sort([]) This sorts the array in ascending order.Try this.Also we have sort features in collections thus just add the data to be sorted in a collecton object and then just call the corresponding sort method and your work is done.
• India
1 Mar 07
we can use "SortedSet" interfaces in java.util packages.