Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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 array

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Recognize the four core purposes service environments fulfill.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago