diff --git a/out/production/VPR_SCRIPT/Execute.class b/out/production/VPR_SCRIPT/Execute.class index 784d629..38c9f64 100644 Binary files a/out/production/VPR_SCRIPT/Execute.class and b/out/production/VPR_SCRIPT/Execute.class differ diff --git a/src/Execute.java b/src/Execute.java index f715f31..a98330e 100644 --- a/src/Execute.java +++ b/src/Execute.java @@ -8,12 +8,17 @@ public class Execute { public static void main(String[] args) { Data data = new Data("menue.txt"); - ArrayList menue = data.readMenue(); - String[]tage = {"Montag","Dienstag", "Mittwoch", "Donnerstag", "Freitag"}; - for (Menue m : menue) { - System.out.println(m); + for (int i = 0; i < menue.size(); i++) { + if (i % 4 == 0) { + System.out.println(); + System.out.println("--------------------------------------"); + System.out.println(GeneralMethods.getDayNumberNew(menue.get(i).getDate())); + System.out.println(menue.get(i).getDate()); + System.out.println(); + } + System.out.println(menue.get(i)); } System.out.println("a: Eier; b: Soja, c: Milch; d: Erdnüsse; e: Weichtiere; f: Krebstiere; g: Getreide; h: Senf\n"