Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

help, how to arrange numbers in increasing order in some condition

843785Oct 5 2008 — edited Oct 5 2008
I really need help i try to code a program of sorting. The code does have an array which a set of integers. Now, how can arrange these numbers "by just base on there tens digit,. regardless the other digit. I cant explain exactly but this is how it looks

the array:
356 -2nd digit is 5
768 -2nd digit is 6
426 -2nd digit is 2
908 -2nd digit is 0

expected output: sorted there 2nd digit:
908
426
356
768

please help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2008
Added on Oct 5 2008
8 comments
255 views