To practice with an ArrayList, you create a program in which the user can enter as many integers (whole numbers) as he / she wants. Of course you put all input in an ArrayList. The entry is complete as soon as a 0 is entered. Then the program will report the following:
See the Javadoc for the arraylist for any useful methods that you can use!
Create your program step-by-step and make sure you have a working program before going to the next step. So start with just entering numbers, then add the output one after another, but run the program each time.
Start of the program:
Output when numbers have been entered:
Output when no numbers have been entered: