Add case default since that wasn't in the instructions

This commit is contained in:
Logen Kain 2020-11-11 14:37:46 -05:00
parent c390affb1a
commit 7dfedb2f16

View File

@ -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:");
}
}
}