From b694a9e6e2484a36d75314a5b2b1b7a990ec6700 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Wed, 11 Nov 2020 15:26:52 -0500 Subject: [PATCH] Fuck the autograder --- Week-11-final-start/part-2/ShoppingCart.java | 8 +-- .../part-2/ShoppingCartManager.java | 57 +++++++++++-------- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/Week-11-final-start/part-2/ShoppingCart.java b/Week-11-final-start/part-2/ShoppingCart.java index 94a2323..1fe8a60 100644 --- a/Week-11-final-start/part-2/ShoppingCart.java +++ b/Week-11-final-start/part-2/ShoppingCart.java @@ -72,13 +72,13 @@ public class ShoppingCart { } public void printTotal(){ - if (cartItems.size() == 0){ - System.out.println("SHOPPING CART IS EMPTY"); - return; - } printNameDate(); System.out.println("Number of Items: " + cartItems.size()); System.out.println(); + if (cartItems.size() == 0){ + System.out.println("SHOPPING CART IS EMPTY"); + } + System.out.println(); for (int i=0; i