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!

Finding Median of 5 Integers

807600May 26 2007 — edited May 26 2007
I need to find the median of 5 integers for a program. I have a conglomeration of IF statements where I am sorting the numbers using Math.min and Math.max. If someone has a slightly more elegant way please post here.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2007
Added on May 26 2007
3 comments
858 views