I am working on making a simple java program which receives inputs from the user in order to generate silver spot prices. I want to know if I am closing the program correctly...
I have an option within a while loop which allows the user to end the program by pressing "0." My goal is to clear the screen and exit the program, but I'm not sure if this is the best way to go about doing it:
else if (itemWeight == 0){
System.out.print('\u000C');
System.exit(0);