Проверочный код при заказе FISH:
add(new Advertisement(someContent, "Video 001",
        500, 10, 5 * 60));   // 5 min
add(new Advertisement(someContent, "Video 002",
        700, 10, 7 * 60));   // 7 min
add(new Advertisement(someContent, "Video 003",
        500, 10, 5 * 60));   // 5 min
add(new Advertisement(someContent, "Video 004",
        1500, 10, 15 * 60)); // 15 min
add(new Advertisement(someContent, "Video 005",
        700, 10, 7 * 60));   // 7 min
add(new Advertisement(someContent, "Video 006",
        100, 10, 1 * 60));   // 1 min
add(new Advertisement(someContent, "Video 007",
        500, 10, 5 * 60));    // 5 min
Дает такой вывод:
Video 004 is displaying... 150, 166
Video 003 is displaying... 50, 166
Video 001 is displaying... 50, 166
Полностью вывод такой:
Выбери ордно из блюд: FISH STEAK SOUP JUICE WATER
FISH
exit
Video 004 is displaying... 150, 166
Video 003 is displaying... 50, 166
Video 001 is displaying... 50, 166
Your order: [FISH] of Tablet{number=1}, cooking time 25min
Start cooking - Your order: [FISH] of Tablet{number=1}, cooking time 25min
Your order: [FISH] of Tablet{number=1}, cooking time 25min was cooked by Boober
Video 001 - 9
Video 002 - 10
Video 003 - 9
Video 004 - 9
Video 005 - 10
Video 006 - 10
Video 007 - 10
31-Oct-2023 - 2,50
Total - 2,50
31-Oct-2023
Boober - 25 min

Process finished with exit code 0