Advertisement
filipparodriguezz

Untitled

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