hi Jordan,
to let the user be able to select more than just one item, you would use line 48 in a loop, something like:
However, you now have to store all the inputted choices, to proces them later. You can use an array for this, but a small problem is that an array has a fixed length. So you must set upfront how many items a user can buy.
Are you familiar with Lists? Thse are kind of arrays too, but can adjust their length, if and when necessary.
By the way: how about creating a class Product, with fields:
String name and int price? That will be much much more handy than having a separate array for each Product property like you have now. For instance:
and have an array Product[], that you can use in your total price and average methods.