How to do the âdo while loopâ automated phone system 18.2 practice for java
/* I am having real trouble with this. I keep getting the or -> expected error. I do not know what that is. I am real new to coding. I feel like Iâm close but maybe I am way off. Can someone please help me?*/ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int number; do { //take input and output corresponding message /* 1 => Language selection 2 => Customer support 3 => Check the balance 4 => Check loan balance 0 => Exit */ number = scanner.nextInt(); switch(number) { 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 number = 0; System.out.println("Exit"); } } while(number != 0 || number < 5 || number >= 0); } }