You can use an array. The problem is that you're only getting input from the user once, on line 6. To get input multiple times, you need to put that line inside a loop, like a for-loop or while-loop. An alternative would be to just enter the values on the command line. The values will go into the args[] array. When you get your program working with that, then you can switch to getting input from the user in a loop. For example, if you run the program from the command line with this:
$ java Avg 1 13 15 8 2
The args[] array will have 5 elements in it. You will need to convert each value from
String to int before you can do any arithmetic operations.