Advertisement
Blonk

Untitled

Mar 13th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.60 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         Scanner keyboard = new Scanner(System.in);
  8.  
  9.         System.out.println("Ye Olde Keychain Shoppe");
  10.         System.out.println();
  11.         while(true){
  12.             System.out.println("1. Add Keychains to Order");
  13.             System.out.println("2. Remove Keychains from Order");
  14.             System.out.println("3. View Current Order");
  15.             System.out.println("4. Checkout");
  16.             System.out.println();
  17.             System.out.println("Please enter your choice: ");
  18.             int keychains = keyboard.nextInt();
  19.             System.out.println();
  20.             if (keychains == 1){
  21.                 add_keychains();
  22.                 System.out.println();
  23.             } else if (keychains == 2){
  24.                 remove_keychains();
  25.                 System.out.println();
  26.             } else if (keychains == 3){
  27.                 view_order();
  28.                 System.out.println();
  29.             } else if (keychains == 4){
  30.                 checkout();
  31.                 break;
  32.             }
  33.         }
  34.  
  35.     }
  36.  
  37.     public static String add_keychains(){
  38.             System.out.println("ADD KEYCHAINS");
  39.             return null;
  40.     }
  41.  
  42.     public static String remove_keychains(){
  43.             System.out.println("REMOVE KEYCHAINS");
  44.             return null;
  45.     }
  46.  
  47.     public static String view_order(){
  48.             System.out.println("VIEW ORDER");
  49.             return null;
  50.     }
  51.  
  52.     public static String checkout(){
  53.             System.out.println("CHECKOUT");
  54.             return null;
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement