Sorting

Discussion on Java at the COJ. This is the place to clear your doubts about these languages, and to share with the community the new things you learn about them.
adrianc
Posts: 19
Joined: Mon Nov 21, 2011 10:49 am
Location: UPR, Cuba
Gender: None specified

Sorting

Postby adrianc » Tue Feb 14, 2012 11:45 am

i would like to know how to sort a Vector or an ArrayList without converting it to an array...



gmo
Posts: 6
Joined: Tue Jan 24, 2012 12:38 am
Gender: None specified

Re: Sorting

Postby gmo » Fri May 11, 2012 1:27 am

I don't know if you already know it, but Collections.sort() does the trick you can even use your own Comparator class to make the sort.


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest