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
Break statement can be used as labels in java?
Define jit compiler?
What is indexof in java?
What is tostring () method?
What is arraylist e in java?
What is command line argument in java?
Is multiple inheritance supported by java?
What is the difference between C++ and Java and your preferences?
What is the multi-catch block in java?
Is java util list serializable?
What type of variable is error flag?
Are there structures in java?
What is use of static method?
Is main a function?
Explain the concept of proper inheritance?