(String name, int qty, double price)
| 15 | "%-15s %5s %10s%n", "----", "---", "-----"); |
| 16 | } |
| 17 | public void add(String name, int qty, double price) { |
| 18 | f.format("%-15.15s %5d %10.2f%n", name, qty, price); |
| 19 | total += price * qty; |
| 20 | } |
| 21 | public String build() { |
| 22 | f.format("%-15s %5s %10.2f%n", "Tax", "", |
| 23 | total * 0.06); |
no test coverage detected