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 java virtual machine? Explain
When can an object reference be cast to an interface reference in java programming?
What are desktop procedures?
Why can't you declare a class as protected?
What is gc()?
Do you know why doesn't the java library use a randomized version of quicksort?
Does hashset allow duplicates in java?
Can you instantiate the math class?
What super () does in java?
What is the use of toarray () in java?
What is stack example?
How is hashset defined in java?
What’s the difference between applets and standalone program?
What are the access modifiers available in java?
What is difference between float and double?