Esempio n. 1
0
 @Override
 public void update(Observable o, Object arg) {
   ConsoleHelper.writeMessage(
       String.format(
           "Start cooking - %s, cooking time %dmin",
           arg.toString(), ((Order) arg).getTotalCookingTime()));
   setChanged();
   notifyObservers(arg);
 }
 @Override
 public void update(Observable o, Object arg) {
   ConsoleHelper.writeMessage(String.format("%s was cooked by %s", arg, o));
 }