For this part :
In my program i have two bread types. However, the user can only opt for one. So say if the want the first one then the next one should be irrelevant, however if they say no to the first one then the second if statement should show. How could i do this ? , I'm guessing an If statement with boolean somehow? CheersSystem.out.print("Do you want "+ thin + "?"); input = keyboard.nextLine(); choice = input.charAt(0); if (choice == 'Y' || choice == 'y') { numberOfthin += 1; toppings = toppings + "Thin"; } System.out.print("Do you want"+ deepDish + "?"); input = keyboard.nextLine(); choice = input.charAt(0); if (choice == 'Y' || choice == 'y') { numberOfdeepDish += 1; toppings = toppings + "DeepDish "; }