0

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

0

I know how to deal with all values but specific value is a problem to me, I dont know how to continue....
I have done that and that I understad but this I dont know

0

but this I dont know

What is the "this" that you don't know?

I think You need to work with a simple program to get the techniques for handling elements from an arraylist in a loop. Write the simple program I suggested and get it to work.

Edited by NormR1: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.