I'm attempting to create a program that acts like a cash register, how can i make the program save a number and then allow me to repeat the input action?
Use a while loop. You could ask the user to end by assigning a value and then check that the value is not entered when trying to enter the while loop
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.