|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
i am currently using java language on linux. however, i would like to know how we can sort the names in alphabetical orders.. from A-Z.. please kindly help as i am not very familiar in using java language.. Thanks a million dreamerzz |
|
#2
|
|||
|
|||
|
The names of what? Let me guess you're taking a beginners java course and this is one of your assignments which you're hoping someone here will do for you.
-KM- |
|
#3
|
|||
|
|||
|
I think u got the wrong idea, forum is to help pple to solve problem.. and did i ever mention to the pple tat i wan them to do it for mi?? I DID NOT!!!!
i am juz hoping tat pple who KNOW my qn r able to help.. |
|
#4
|
|||
|
|||
|
Ok then.
Look up the java comparable interface and related sorting functions. Failing that (since your objects my not be comparable) you could write your own sorting algorithm using something simple like a bubble sort or similar. -KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Arrays |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|