Sortin Vector

M

morc

hey,
I have a vector which has a series of objects in it.
Id like them to be sorted in relation one of the data members or the
objects.

is htis possible?
if so can somebody explain how i should go about this

thanks in advance
-morc
 
E

Eric Sosman

morc wrote On 03/23/06 13:59,:
hey,
I have a vector which has a series of objects in it.
Id like them to be sorted in relation one of the data members or the
objects.

is htis possible?
if so can somebody explain how i should go about this

Use the Collections.sort(List, Comparator) method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top