Re: Is there a better way to do this?



Yeah, I knew I could have implemented a bubble sort or insertion sort or
something like that, but the Collections.sort lets me do it in one line.
so does Arrays.sort which sorts arrays. See
http://mindprod.com/jgloss/sort.html
There is no need to roll your own sort to sort arrays.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages