hi, i just started learning java.
My problem is making a loop. I need the user to type in how many times it should loop.
im making a simple cashregister and the first thing i need to find out is howmany products this person bought.

System.out.print("How many products did u buy? "):
and then the number he enters is how many times i want this next sentence to loop.

System.out.print("how much did this product cost? ");

//Thanks