I suggest that you put this program away for a while and a write a very simple program to learn some basic things.
You need to understand how to use variables, and loops and how to get input from users and how to store that in an object and how to go through those objects.
Create an arraylist and Write a loop that prompts the user for a number, reads that number in, creates an Integer object and put that object into the array list. Make the loop go around 5 times.
After getting the input from the user, write another loop to go through the arraylist, get the Integer objects out of the array list and sum up the values in the Integer object.
Edited by NormR1: n/a