Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer by using Java. In-Class Exercise 11 - Introduction to Arrays In this exercise we will create several types of arrays and add data
Please answer by using Java.
In-Class Exercise 11 - Introduction to Arrays In this exercise we will create several types of arrays and add data to them. Create a class called ICE11 and write your code in the "main" method of this class. 1. Create an array of type int with length 4 II. Create an array of type String with length 4 III. By using the Random class, store a random number between 0 and 10 in each cell of the array IV. Go through the integer array items one by one and check the value. If it is an odd number, put "ODD" in the corresponding cell of the String array. If it is even, put "EVEN" V. For instance if the first array contains 2,7,3,8 the String array should contain "EVEN", "ODD", "ODD", "EVEN". VI. Use the print() statement and print out the contents of the string arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started