class BakeryPart2 {

   public static void main(String[] args) throws IOException {
      if (args[0] == null || args[0] == "") {
         System.out.println("File name expected as command line argument.");
         System.out.println("Program ending.");
      } else {
         String fileName = args[0];
         BakedItemList a = new BakedItemList();
         a.readItemFile(fileName);
         System.out.println(a.generateReport());
         System.out.println(a.generateReportByClass());
         System.out.println(a.generateReportByPrice());
         System.out.println(a.generateReportByFlavor());
         System.out.println(a.generateExcludedRecordsReport());
      }
   }

}