From 9b2bf0948b5118af75085326b822d983c18bc704 Mon Sep 17 00:00:00 2001 From: Zabih Mansuri <3010192@stud.hs-mannheim.de> Date: Tue, 22 Oct 2024 13:49:51 +0200 Subject: [PATCH] =?UTF-8?q?alles=20angepasst=20und=20gepr=C3=BCft=20online?= =?UTF-8?q?=20shop=20funktioniert,=20fragen=20ob=20die=20prudukte=20in=20o?= =?UTF-8?q?nlinshop,=20sich=20=C3=A4ndern=20,m=C3=BCssen,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Warenkorb.java | 6 +++--- out/production/Online_schop/Main.class | Bin 4205 -> 4254 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Warenkorb.java b/Warenkorb.java index adaf235..608aefc 100644 --- a/Warenkorb.java +++ b/Warenkorb.java @@ -5,7 +5,7 @@ public class Warenkorb { private List eintraege = new ArrayList<>(); private Kunden kunde; - // Fügt ein Produkt zum Warenkorb hinzu + // Fügt ein Produkt zum Warenkorb hinzu von warenkorbeintrag public void produktHinzufuegen(Prudukt produkt, int anzahl) { eintraege.add(new WarenkorbEintrag(produkt, anzahl)); } @@ -67,12 +67,12 @@ public class Warenkorb { this.kunde = kunde; } - // Gibt den Warenkorb und die Produkte aus + // Gibt den Warenkorb und die Produkte aus KI public void printWarenkorb() { System.out.println(this); } - @Override + @Override //mit Hilfe von ki public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Warenkorb für: ").append(kunde != null ? kunde.getName() : "Unbekannt").append("\n"); diff --git a/out/production/Online_schop/Main.class b/out/production/Online_schop/Main.class index 6aed3044ba379a1903e1ec16b3b38e1d99981b7f..9da83a7ca7d1f79335d71564341cd87d363671bd 100644 GIT binary patch delta 1022 zcmXYwYitx%6vuyewmY*sJEdtG(Ncp0Yf&+>q6vl-NteV=R6iIK(?(+!I^ee31^0nj zLeh|`2o_)02l&7zuJ77i-P%^LT9lU}6;V;~fsap`_)#ks&ulu$-1+}c{^y+kJ@?L^ z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