MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

strings/ReceiptBuilder.java:29–37  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

27 return f.toString();
28 }
29 public static void main(String[] args) {
30 ReceiptBuilder receiptBuilder =
31 new ReceiptBuilder();
32 receiptBuilder.add("Jack's Magic Beans", 4, 4.25);
33 receiptBuilder.add("Princess Peas", 3, 5.1);
34 receiptBuilder.add(
35 "Three Bears Porridge", 1, 14.29);
36 System.out.println(receiptBuilder.build());
37 }
38}
39/* Output:
40Item Qty Price

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
buildMethod · 0.95

Tested by

no test coverage detected