Question: Java programming 1) Declare an array (don't define size because you must use new) of integers (aintValues) in main. For example int aintValues Il The
1) Declare an array (don't define size because you must use new) of integers (aintValues) in main. For example int aintValues Il The braces mean the variable is an array Write a function that will prompt the user for the size of the array. The function will read a number from the user from 0 to 100 inclusive. The function will loop until a number in that range is entered. The function will then allocate space for an array of that size and return the array. Assign the array returned from the function to the variable declared above. For example 2) aintValues MakeArray() Write a method and call i from main. The method should populate the entire array with values read fro user. You must pass the array as a parameter to the method. Don't forget about the length property of the array 3) 4) Wite a method and call it from main. The method should print all the values in the array. You must pass the array as a parameter to the method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
