Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find the 3rd maximum number in a list of 25 numbers

Status
Not open for further replies.

biridimba

Technical User
Aug 9, 2006
2
0
0
IT
hi all!!!

i'm daniele from italy and this is my first message.
here's the problem:

i have a list of 25 numbers and i have to find the 3 maximum values then, in these 3 values, the minimum one and return it to the program.

i've searched the documentation in various classes: string, hashmap, biginteger, bigdecimal, collection and so on... all that i have herd something but nothing usefull was found.

any idea or hint on how to solve this problem???

thanks to all and see you around!!!
 
or heck - just a simple loop !

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
thanks guys but i think to have found a better solution searching with google now at home:

Arrays.sort(int[] vect)

eh eh
just what i was looking for!!!

thanks anyway and i hope this will be usefull for other people...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top