The code box below includes a live array variable called mor
The code box below includes a live array variable called moreNums. This array holds integers. You cannot see its declaration or initialization. Several of the entries in the array are 0. What is the largest index in the array that references a 0? Write statements in the box below that determine this value and then print the value to the console.
For example, if the array looks like this:
Solution
Answer:
for(int i=moreNums.length-1; i>=0;i--){
if(moreNums[i] == 0){
System.out.println(\"Largest index in the array that references a 0 is \"+i);
break;
}
}
