Question: write in java please ArrayList The program you are given declares an even nums ArrayList. Write a program to take numbers as input and add
write in java please
ArrayList
The program you are given declares an even nums ArrayList. Write a program to take numbers as input and add them an ArrayList while the size of the ArrayList isn't equal to 3. Then calculate and output the average of all values in integers. Sample Input 5 2 4 Sample Output 3
Use evennums.size() in while loop condition.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
