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
What is api data?
Does chrome use java?
How can we pass argument to a function by reference instead of pass by value?
How do you escape sequences in java?
What restrictions are placed on method overriding?
Can abstract class have private constructor?
What is OOP's Terms with explanation?
How is final different from finally and finalize?
How do you implement singleton class?
I want to persist data of objects for later use. What is the best approach to do so?
Is it possible to compare various strings with the help of == operator?
How does multithreading take place on a computer with a single cpu in java programming?
What are operators and its types?
In java how do we copy objects?
Is it possible to override the main method?