From ddc485ddebd50535d7a4a4d3d68e226e73268a1a Mon Sep 17 00:00:00 2001 From: ibartkowski Date: Mon, 14 Oct 2024 19:06:31 +0200 Subject: [PATCH] Update Technikladen/OrderEntry.java Removed package line --- Technikladen/OrderEntry.java | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Technikladen/OrderEntry.java b/Technikladen/OrderEntry.java index c607a20..9d47921 100755 --- a/Technikladen/OrderEntry.java +++ b/Technikladen/OrderEntry.java @@ -1,16 +1,14 @@ -package tech_store; - -public class OrderEntry { - private Product orderProduct; - private int entryAmount; - public OrderEntry(Product product, int amt) { - this.orderProduct = product; - this.entryAmount = amt; - } - public int calcPrice() { - return this.entryAmount * this.orderProduct.getPrice(); - } - public String toString() { - return ("Product: " + this.orderProduct.getName() + ", Amount: " + this.entryAmount); - } -} +public class OrderEntry { + private Product orderProduct; + private int entryAmount; + public OrderEntry(Product product, int amt) { + this.orderProduct = product; + this.entryAmount = amt; + } + public int calcPrice() { + return this.entryAmount * this.orderProduct.getPrice(); + } + public String toString() { + return ("Product: " + this.orderProduct.getName() + ", Amount: " + this.entryAmount); + } +}