Question: Need help with Java code to do these 3 parts of a question Declare and create an int array of size 10. Write a loop

Need help with Java code to do these 3 parts of a question  Need help with Java code to do these 3 parts of

Declare and create an int array of size 10. Write a loop that populates the array with random numbers between 100 and 150 (inclusive) Print the Sth element of the array on the console. Loop through the array and print out (on the console) half the value of each of those numbers in the array. Use casting to avoid loss of precision

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!