Discussion Topic
Explain the following code snippet.Include the value of elements in the array and the final value of
index.
int [] myArray = new int [10];
int index = 0;
for (index = 0; index < myArray.length; index ++){
myArray[index] = index 2;
}
System.out.println(
myArray [index]);