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
Is int primitive data type?
What is a void method?
What is data member in java?
What is string immutability?
What is difference between next () and nextline () in java?
What does \ mean in regex?
What is the meaning of course?
Which is better ascii or unicode?
What is variable explain with example?
Are arrays static in java?
Is hashmap thread safe?
What is thread pool? How can we create thread pool in java?
What checkbox method allows you to tell if a checkbox is checked?
How to use arraylist in java netbeans?
What is string pooling concept?