Esempio n. 1
0
 @Override
 public void msgHereIsBill(double amount) {
   log.add(new LoggedEvent4("Received msgHereIsBill from waiter. Amount = " + amount));
   System.out.println(name + ": Received msgHereIsBill from waiter. Amount = " + amount);
 }
Esempio n. 2
0
 @Override
 public void msgHereIsChange(boolean paid) {
   log.add(new LoggedEvent4("Received msgHereIsChange from cashier. Paid = " + paid));
   System.out.println(name + ": Received msgHereIsChange from cashier. Paid = " + paid);
 }