I have a problem. I want to make a program that reads all the integers that are typed in and when a certain integer is typed in (lets say 0) it stops and then adds them all toghether.
I was thinking of a while and for loop. And to place the integers to an array. But how do i add integers to an array? How can I do so that the array list keeps expanding if there are to few slots for all the integers?
What would you guys suggest?