From b871ab9a857fc3de56ccc4ea29edb198de8cc9d6 Mon Sep 17 00:00:00 2001 From: ibartkowski Date: Fri, 18 Oct 2024 15:20:09 +0200 Subject: [PATCH] revert df521054ef307c0274d6dbffcea459ecbe61779e Me dumb --- Technikladen/OrderSystem.java | 10 ---------- Technikladen/StorageManager.java | 5 ----- Technikladen/TechStore.java | 16 ---------------- 3 files changed, 31 deletions(-) diff --git a/Technikladen/OrderSystem.java b/Technikladen/OrderSystem.java index 076fe31..5f08c11 100755 --- a/Technikladen/OrderSystem.java +++ b/Technikladen/OrderSystem.java @@ -3,15 +3,9 @@ import java.util.ArrayList; public class OrderSystem { private StorageManager systemManager; private ArrayList systemClients; -<<<<<<< HEAD public OrderSystem(StorageManager manager) { this.systemManager = manager; this.systemClients = new ArrayList(); -======= - public OrderSystem(StorageManager manager, ArrayList clients) { - this.systemManager = manager; - this.systemClients = clients; ->>>>>>> 89bb3a674e4304644c37109ed5a608b97926deb9 } public void addProduct(Product product) { this.systemManager.addProduct(product); @@ -58,8 +52,4 @@ public class OrderSystem { System.out.println("ID: " + product.getID() + ", Name: " + product.getName() + ", Price: " + product.getPrice() + ", Amount: " + product.getAmount()); } } -<<<<<<< HEAD } -======= -} ->>>>>>> 89bb3a674e4304644c37109ed5a608b97926deb9 diff --git a/Technikladen/StorageManager.java b/Technikladen/StorageManager.java index 0ba6822..1229c13 100755 --- a/Technikladen/StorageManager.java +++ b/Technikladen/StorageManager.java @@ -2,13 +2,8 @@ import java.util.ArrayList; public class StorageManager { private ArrayList storageProducts; -<<<<<<< HEAD public StorageManager() { this.storageProducts = new ArrayList(); -======= - public StorageManager(ArrayList products) { - this.storageProducts = products; ->>>>>>> 89bb3a674e4304644c37109ed5a608b97926deb9 } public void addProduct(Product product) { this.storageProducts.add(product); diff --git a/Technikladen/TechStore.java b/Technikladen/TechStore.java index 67eefea..18d4e14 100755 --- a/Technikladen/TechStore.java +++ b/Technikladen/TechStore.java @@ -1,23 +1,13 @@ -<<<<<<< HEAD import java.util.Scanner; import java.util.ArrayList; -======= -import java.util.ArrayList; -import java.util.Scanner; ->>>>>>> 89bb3a674e4304644c37109ed5a608b97926deb9 public class TechStore { public static void p(String input) { System.out.print(input); } public static void main(String[] args) { -<<<<<<< HEAD StorageManager manager = new StorageManager(); OrderSystem system = new OrderSystem(manager); -======= - StorageManager manager = new StorageManager(new ArrayList()); - OrderSystem system = new OrderSystem(manager, new ArrayList()); ->>>>>>> 89bb3a674e4304644c37109ed5a608b97926deb9 Scanner scnr = new Scanner(System.in); while (true) { p("\nInput mode: "); @@ -116,9 +106,3 @@ public class TechStore { } } } -<<<<<<< HEAD -======= - - - ->>>>>>> 89bb3a674e4304644c37109ed5a608b97926deb9