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

What is api data?

1009


Does chrome use java?

977


How can we pass argument to a function by reference instead of pass by value?

1111


How do you escape sequences in java?

1077


What restrictions are placed on method overriding?

1189


Can abstract class have private constructor?

949


What is OOP's Terms with explanation?

1193


How is final different from finally and finalize?

927


How do you implement singleton class?

995


I want to persist data of objects for later use. What is the best approach to do so?

1068


Is it possible to compare various strings with the help of == operator?

999


How does multithreading take place on a computer with a single cpu in java programming?

1021


What are operators and its types?

1070


In java how do we copy objects?

1059


Is it possible to override the main method?

981