I am actually giving the DecimalFormat a go too, and thanks for opening my eyes on that article, great stuff.
Type: Posts; User: Moa
I am actually giving the DecimalFormat a go too, and thanks for opening my eyes on that article, great stuff.
You sir, are a life saver :), this is the kind of solution I was looking for, I edited the last line in the TestItemTester class as follows:
System.out.printf("%8.2f", register.giveChange());
...
I was asked to use double, thanks anyway.
PS: having a rough day? ;)
Hello,
I am writing a simple Java code, which acts like a Cash Register, However I have faced an issue which I hope to get some help on.
The program:
public class TestItem