Problem with scanner.nextInt in do-while loops
Hi everybody, i'm currently working on the "Do-while" test with the call center. I just can't seem to figure out how to print the string e.g. 1 for Language support. I can get my code to enter any number and keep it going until the user enters "0". I really thought that I had cracked it, but it doesn't work... Would appreciate any help! import java.util.Scanner; public class DoWhile { public static void main(String[] args) { Scanner scanner = new Scanner (System.in); int nummber = scanner.nextInt(); do { number = scanner.nextInt(); if (number == 1){ System.out.println ("Language selection"); if (number == 2); System.out.println("Customer support"); if (number == 3) System.out.println("Check the balance"); if (number == 4) System.out.println("Check loan balance"); if (number == 0) System.out.println("Exit"); } } while(number !=0); } }