|
-
May 28th, 2003, 01:02 PM
#1
Thread Starter
Addicted Member
array sort, comparable?
I'm interested in using the sort method of the array class.
sort(Object[] a, Comparator c)
I have anarray of ADTs cal them X[]. This type has many public varibles in the class. I'd like to sort the array by these varibles, this possible with X.sort(X, ???);?
Any other ideas? Or am i going to have to write the sorting method???
Thanks!
NOMAD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|