Given the following code, what logic would you need to include to print all even values stored within the array: int[] myArray = {1,2,38,4,54,6,7,8,9,10};

for (int i = 0; i < myArray.length; i++) {
//your code goes here
}
NOTE: Your response should be just the missing logic--not the entire problem set.

Solved
Show answers

Ask an AI advisor a question