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
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is java util?
How to set the permissions to a file in java?
Define linked list and its features with signature?
What is the function of compareto in java?
What is methodological theory?
Can we define private and protected modifiers for the members in interfaces?
Why do I need to declare the type of a variable in java?
Compare java and python.
what is thread? : Java thread
How do I know if java is installed?
What is meant by class?
What is the difference between length and size in java?
What is thread pool? How can we create thread pool in java?
What is instance synchronization?