Like I said before, if you put %n in the format statement, you don't need the extra println() calls.
Regards,
Jim
Type: Posts; User: jim829
Like I said before, if you put %n in the format statement, you don't need the extra println() calls.
Regards,
Jim
System.out.println() does not permit formatting. If you want a return followed by a newline put a %n after the f (e.g. "%.2f%n"). Note. There are many formatting codes to use with printf. You...
First, the closing code tag needs a forward, not a backward, slash.
The problem is that you are creating two SalesTest objects when only one is needed.
The variable getProdNumb is stored in the...
It works for me. Did you show your exact code? BTW, closing the scanner when the Readable source is System.in is not a good idea because that will close the System.in stream and you will not longer...
Try keyboard.close()
Regards,
Jim