Question: The code box below includes a live int array variable called nums, whose declaration and initialization is hidden. The elements in this array are distinct.
The code box below includes a live int array variable called nums, whose declaration and initialization is hidden. The elements in this array are distinct. What is the largest element in the array? Write appropriate code, involving a loop, that will print this value to the console. The answer you enter should execute exactly one System.out.println statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
