Add case default since that wasn't in the instructions
This commit is contained in:
parent
c390affb1a
commit
7dfedb2f16
@ -11,6 +11,7 @@ public class ShoppingCartManager {
|
|||||||
System.out.println("Enter Today's Date:");
|
System.out.println("Enter Today's Date:");
|
||||||
curDate=scnr.nextLine();
|
curDate=scnr.nextLine();
|
||||||
ShoppingCart cart = new ShoppingCart(custName, curDate);
|
ShoppingCart cart = new ShoppingCart(custName, curDate);
|
||||||
|
System.out.println();
|
||||||
System.out.println("Customer Name: "+custName);
|
System.out.println("Customer Name: "+custName);
|
||||||
System.out.println("Today's Date: "+curDate);
|
System.out.println("Today's Date: "+curDate);
|
||||||
|
|
||||||
@ -43,6 +44,9 @@ public class ShoppingCartManager {
|
|||||||
break;
|
break;
|
||||||
case 'o': outputCart(cart);
|
case 'o': outputCart(cart);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
System.out.println("Choose an option:");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user