Search:

Type: Posts; User: Moa

Search: Search took 0.25 seconds.

  1. Re: Simple CashRegister program behaviour issue [Basic]

    I am actually giving the DecimalFormat a go too, and thanks for opening my eyes on that article, great stuff.
  2. Re: Simple CashRegister program behaviour issue [Basic]

    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());
    ...
  3. Re: Simple CashRegister program behaviour issue [Basic]

    I was asked to use double, thanks anyway.

    PS: having a rough day? ;)
  4. Simple CashRegister program behaviour issue [Basic]

    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
Results 1 to 4 of 4