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