Sort that array in descending order, and output first 5 number.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of nguyen thanh lam Sent: Sunday, July 26, 2009 3:37 PM To: Free Java Programming Online Training Course By Sang Shin Subject: [java programming] output top 3 from 1 array. int abc[]={1,2,7,95,43,21,22,12,11}; how to output top 5 number which are greater than others? --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
