The task conditions are not really spelled out that well. The first problem is that the task calls for the outputs to be alphabetized, however the example outputs are not. I implemented the second condition exactly as asked, and passed the first one (which is nearly the same). Right now I have all the code in one method: StatisticsAdvertisementManager.printCommercials(). I originally had this one method split into two, but the code in each were so similar that combining them made sense, and I pass in a boolean to modify the outputs. The part that I am failing gives no "suggestion from mentor", so at this point (20 attempts in), I need someone to see if they can spot an error. Either that or the task may be bugged.
package com.codegym.task.task27.task2712;
import com.codegym.task.task27.task2712.kitchen.Cook;
import com.codegym.task.task27.task2712.kitchen.Dish;
import com.codegym.task.task27.task2712.kitchen.Waiter;
import com.codegym.task.task27.task2712.statistics.StatisticsManager;
import com.codegym.task.task27.task2712.statistics.event.OrderReadyEventDataRow;
public class Restaurant {
public static void main(String[] args) {
ManagerTablet manTab1 = new ManagerTablet();
Tablet tab1 = new Tablet(2354);
Cook cook = new Cook("Amigo");
Waiter waiter = new Waiter();
cook.addObserver(waiter);
tab1.addObserver(cook);
tab1.createOrder();
manTab1.printAdRevenue();
manTab1.printCookUtilization();
manTab1.printActiveVideoSet();
manTab1.printArchivedVideoSet();
}
}