@@ -0,0 +1,1315 @@
+/*%0A    An example of a menu system in a while loop%0A*/%0A%0Aimport java.util.Scanner;%0A%0Apublic class WhileMenu%0A%7B%0A    public static void main(String%5B%5D args)%0A    %7B%0A        Scanner input = new Scanner(System.in);%0A        char choice = 'Z';%0A%0A        while(choice != 'X')%0A        %7B%0A            System.out.println(%22Welcome to the Menu System.%22);%0A            System.out.println(%22Enter %5C'A%5C' option A %22);%0A            System.out.println(%22Enter %5C'B%5C' option B %22);%0A            System.out.println(%22Enter %5C'X%5C' to Exit %22);%0A            System.out.println(%22Please enter your choice: %22);%0A            choice = input.next().charAt(0);%0A            choice = Character.toUpperCase(choice);%0A%0A            switch(choice)%0A            %7B%0A                case 'A': System.out.println(%22Your choice was %5C'A%5C'%22);%0A                    break;%0A                case 'B': System.out.println(%22Your choice was %5C'B%5C'%22);%0A                    break;%0A                case 'X':%0A                    break;%0A                default: System.out.println(%22You entered an invalid choice.%22);%0A                    System.out.println(%22Please enter your choice: %22);%0A                    choice = input.next().charAt(0);%0A                    choice = Character.toUpperCase(choice);%0A                    break;%0A            %7D%0A        %7D%0A        System.out.println(%22Goodbye.%22);%0A%0A    %7D%0A%7D

Add an example of a menu system in a while loop