Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner keyboard = new Scanner(System.in);
- int choice = 0;
- while (choice != 4) {
- System.out.println();
- System.out.println("1. Add Keychains to Order");
- System.out.println("2. Remove Keychains from Order");
- System.out.println("3. View Current Order");
- System.out.println("4. Checkout");
- System.out.println("Please enter your choice:");
- choice = keyboard.nextInt();
- if (choice == 1) {
- add_keychains();
- } else if (choice == 2) {
- remove_keychains();
- } else if (choice == 3) {
- view_order();
- } else if (choice == 4) {
- checkout();
- }
- }
- }
- public static void add_keychains () {
- System.out.println("ADD KEYCHAINS");
- }
- public static void remove_keychains () {
- System.out.println("REMOVE KEYCHAINS");
- }
- public static void view_order () {
- System.out.println("VIEW ORDER");
- }
- public static void checkout () {
- System.out.println("CHECKOUT");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement