Thread
:
Sort java objects in an Array
View Single Post
08-09-2004, 04:48 PM
PM User
|
#
2
VietBoyVS
New Coder
Join Date: Jan 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
You're on the right track, you have to use compareTo inside your Comparator class that you create.
you have to have the compare( ) method this is where how you want to sort it.
VietBoyVS
View Public Profile
Visit VietBoyVS's homepage!
Find More Posts by VietBoyVS