Вывод консоли
Fish, Juice, Soup, Steak, Water
Введите название блюда
Juice
Soup
exit
Third Video is displaying... 200, 333
First Video is displaying... 50, 277
Your order: [Juice, Soup] of Tablet{number=1}, cooking time 20min
Start cooking - Your order: [Juice, Soup] of Tablet{number=1}, cooking time 20min
Your order: [Juice, Soup] of Tablet{number=1}, cooking time 20min was cooked by Amigo
09-Sep-2019 - 2.50
Total - 2.50
09-Sep-2019
Amigo - 20 min
Process finished with exit code 0
package com.javarush.task.task27.task2712;
import com.javarush.task.task27.task2712.kitchen.Cook;
import com.javarush.task.task27.task2712.kitchen.Waiter;
import javafx.beans.InvalidationListener;
import java.io.IOException;
import java.util.Observable;
import java.util.Observer;
public class Restaurant {
public static void main(String[] args) throws IOException {
Tablet tablet = new Tablet(1);
Tablet tablet1 = new Tablet(2);
Cook cook = new Cook("Amigo");
Cook cook1 = new Cook("Mor");
Waiter waiter = new Waiter();
DirectorTablet directorTablet = new DirectorTablet();
tablet.addObserver(cook);
cook.addObserver(waiter);
tablet.createOrder();
directorTablet.printActiveVideoSet();
directorTablet.printAdvertisementProfit();
directorTablet.printCookWorkloading();
directorTablet.printArchivedVideoSet();
}
}