(I'm trying to make a menu that repeats unless you enter 4. How do I get this to repeat the printMenu()Method that prints the options and keeps repeating options until you hit exit #4?) public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); printMenu(); int x = input.nextInt(); if ( x == 1) countPunctuation(); if ( x == 2) charactertoBinary(); if ( x == 3) binaryToCharacter(); if (x == 4) System.out.print("You have chosen Exit. Goodbye"); if (x > 4) System.out.print("Error"); printMenu(); if (x < 1) System.out.print("Error"); } // Create first Method. Print Menu*** public static void printMenu(){ String newline = System.getProperty("line.separator"); System.out.print("Enter '1' to count punctuation symbols in a String." + newline + "Enter '2' to convert characters to binary." + newline + "Enter '3' to convert 8-bit binary to a character." + newline + "Enter '4' to exit."+newline +"Enter option:"); }.