Question: Java question please write code will rate thanks! 8. [12 pts] Arrays Declare and instantiate an array called myArray. Then use a loop to initialize
![Java question please write code will rate thanks! 8. [12 pts] Arrays](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f105a5c535e_65366f105a53654b.jpg)
Java question please write code will rate thanks!
8. [12 pts] Arrays Declare and instantiate an array called myArray. Then use a loop to initialize the array with the first 10 even numbers starting at 12. In other words, have even numbers from 12 to 30 in the array. DO NOT use the shorthand notation for initializing an array. myArray : 2114116118120122|24126128130] public class ArrayFun public static void main(Stringtl args) //, Your.code below: V-2 pts Incorrectly declares array -2 pts Incorrectly instantiates array, or size != 10 V-4 pts Incorrect loop or number of iterations V-4 pts Incorrectly assigns number to index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
