From c2f1ec6efdd4280726b7fa0f9c6e23ab11aed7fb Mon Sep 17 00:00:00 2001 From: ibartkowski Date: Mon, 14 Oct 2024 19:05:24 +0200 Subject: [PATCH] Update Technikladen/Client.java Removed package line --- Technikladen/Client.java | 76 +++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/Technikladen/Client.java b/Technikladen/Client.java index c7f9528..3b32333 100755 --- a/Technikladen/Client.java +++ b/Technikladen/Client.java @@ -1,39 +1,37 @@ -package tech_store; - -import java.util.ArrayList; - -public class Client { - private static int clientCounter; - private int clientID; - private String clientName; - private String clientEmail; - private ArrayList clientOrders; - public Client(String clientName, String clientEmail) { - clientCounter++; - this.clientID = clientCounter; - this.clientName = clientName; - this.clientEmail = clientEmail; - this.clientOrders = new ArrayList(); - } - public int getID() { - return this.clientID; - } - public String getName() { - return this.clientName; - } - public String getEmail() { - return this.clientEmail; - } - public ArrayList getOrders() { - return this.clientOrders; - } - public void addOrder(Order order) { - this.clientOrders.add(order); - } - public boolean hasOrder() { - return !this.clientOrders.isEmpty(); - } - public String toString() { - return ("ID: " + this.clientID + ", Name: " + this.clientName + ", Email: " + this.clientEmail); - } -} +import java.util.ArrayList; + +public class Client { + private static int clientCounter; + private int clientID; + private String clientName; + private String clientEmail; + private ArrayList clientOrders; + public Client(String clientName, String clientEmail) { + clientCounter++; + this.clientID = clientCounter; + this.clientName = clientName; + this.clientEmail = clientEmail; + this.clientOrders = new ArrayList(); + } + public int getID() { + return this.clientID; + } + public String getName() { + return this.clientName; + } + public String getEmail() { + return this.clientEmail; + } + public ArrayList getOrders() { + return this.clientOrders; + } + public void addOrder(Order order) { + this.clientOrders.add(order); + } + public boolean hasOrder() { + return !this.clientOrders.isEmpty(); + } + public String toString() { + return ("ID: " + this.clientID + ", Name: " + this.clientName + ", Email: " + this.clientEmail); + } +}