I tried to make a multiple random pick ups that would print the message for each input number, i.e. serie of numbers (4 2 17 0) where 0 will stop the code. Got wrong output
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number=scanner.nextInt();
int x = number;
do{switch(x) {
case 1:
System.out.println("Language selection");
break;
case 2:
System.out.println("Customer support");
break;
case 3:
System.out.println("Check the balance");
break;
case 4:
System.out.println("Check loan balance");
break;
case 0:
System.out.println("Exit");
break;
default:
return;
}
if (x==0)
{break;}
x++;
}
while (true);
}
} ```

