Thanks again, I wasn't sure about the printf thing, but after some googling I came up with this.
System.out.print("Product 1: ");
System.out.printf("%.2f",dollarsmadeprod1);...
Type: Posts; User: chunkymonkey
Thanks again, I wasn't sure about the printf thing, but after some googling I came up with this.
System.out.print("Product 1: ");
System.out.printf("%.2f",dollarsmadeprod1);...
Thank you!! that did it!
only one more thing if you don't mind.
I need my System.out.println statements to be formatted to only have 2 decimal places.
right now they look like this...
okay, actually, I decided to start over, but the Scanner is still my problem. I will include the code, but the bigger problem for me right now is the the integer that I think should be holding me...
thank you so much for the reply Jim, but
keyboard.close()
or
keyboard.close();
both give the "keyboard cannot be resolved" error.
hello,
I need to create a Scanner in my code, and I've googled it and it seems like I can open the Scanner utility just fine. But I found out later that you need to close the Scanner, and I can't...