From 7dfedb2f16910a0cca4fc704ed50445e289950fa Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Wed, 11 Nov 2020 14:37:46 -0500 Subject: [PATCH] Add case default since that wasn't in the instructions --- Week-11-final-start/part-2/ShoppingCartManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Week-11-final-start/part-2/ShoppingCartManager.java b/Week-11-final-start/part-2/ShoppingCartManager.java index b25a593..736560d 100644 --- a/Week-11-final-start/part-2/ShoppingCartManager.java +++ b/Week-11-final-start/part-2/ShoppingCartManager.java @@ -11,6 +11,7 @@ public class ShoppingCartManager { System.out.println("Enter Today's Date:"); curDate=scnr.nextLine(); ShoppingCart cart = new ShoppingCart(custName, curDate); + System.out.println(); System.out.println("Customer Name: "+custName); System.out.println("Today's Date: "+curDate); @@ -43,6 +44,9 @@ public class ShoppingCartManager { break; case 'o': outputCart(cart); break; + default: + System.out.println("Choose an option:"); + } } }