Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write java code to print second max number in the array

Answer Posted / sunny

I think, the except for Himesh's program, all other ones
doesnt handle duplicate values ...
I mean if the numbers are :- 9 9 8 8 7 7 7 1 3 2
the answer should be 8 ideally.
But I doubt whether thats really happening in any other
programs, except for Himesh's.
Do let me know, if I am wrong. Thanks.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2756


What is java util?

972


How to set the permissions to a file in java?

937


Define linked list and its features with signature?

931


What is the function of compareto in java?

1007


What is methodological theory?

926


Can we define private and protected modifiers for the members in interfaces?

1043


Why do I need to declare the type of a variable in java?

990


Compare java and python.

934


what is thread? : Java thread

920


How do I know if java is installed?

1012


What is meant by class?

946


What is the difference between length and size in java?

921


What is thread pool? How can we create thread pool in java?

1007


What is instance synchronization?

996