1.
Q20: Put the following code in order to create a program that will declare and instantiate an array of 10 random values between 1 and 100 and then find the maximum value in the array.
arrayName[index]
returns value stored at that indexarrayName.length
- 1, inclusive otherwise IndexOutOfBounds
exception occursarrayName[index]
will now contain the value on the RHS of assignment statement