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
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
Get step-by-step solutions from verified subject matter experts
