Question: In this class exercise, you are to write Java code for the following: 1. Declare and initialize an array to store names of months in

In this class exercise, you are to write Java code for the following: 1. Declare and initialize an array to store names of months in a year 2. Using the above array, store months April, September and November 3. Declare and initialize an array containing the following values: 1.2, 2.3, 3.4, 4.5, 5.6 and 6.7 4. Print contents of the above array and, then answer the following: 5. What is wrong with this code: int [I data; data [0]- 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
