ausgabe angepasst

This commit is contained in:
Madeleine Vigier 2022-12-17 17:28:35 +01:00
parent 536d7fe1fb
commit bf8cf182db
2 changed files with 9 additions and 4 deletions

View File

@ -8,12 +8,17 @@ public class Execute {
public static void main(String[] args) {
Data data = new Data("menue.txt");
ArrayList<Menue> 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"