ATM machine game

I need help with asking for valid id when numbers other than 0 -9 are typed in. Numbers 0-9 have to be typed in for id. But if the 999 is typed in then the program exits. Then I need to display the menu every time I enter one of the choices in the menu, which is Main menu 1: check balance 2: withdraw 3: deposit 4: exit. once the user enters the number 4 from the menu choices. the program will aks for the id again. This is what I have so far.
import java.util.Scanner;
public class HW8_2 {
public static void main(String args) {
Scanner input = new Scanner(System.in);
Account account = new Account[10];
System.out.println(“Enter an ID between between 0 and 9,”
+ "999 to quit the game: ");
int id = input.nextInt();
while(id < 0 || id > 9) {
System.out.print("Please enter a valid id: ");
int id2 = input.nextInt();
System.out.println(“1. check balance\n” + “2. withdraw\n” +
“3. deposit\n” + “4. exit\n”);
System.out.print("Enter a choice: ");
int choice = input.nextInt();
switch (choice) {
case 1:
System.out.print("Enter a choice: ");
System.out.print("The balance is " + account[id].getBalance());
break;
case 2:
System.out.print("Enter a choice: ");
System.out.print("Enter an amount to withdraw: ");
account[id].withdraw(input.nextDouble());
break;
case 3:
System.out.print("Enter a choice: ");
System.out.print("Enter an amount to deposit: ");
account[id].withdraw(input.nextDouble());
break;
case 4:
System.out.print("Enter a choice: ");
System.out.println(“Game over. Good bye!”);
break;
}
}
}

class Account{
    private int id;
    private double balance;
    private double monthlyFee;
    
    Account() {
        id = 0;
        balance = 100;
        monthlyFee = 0;
    } 

    public Account(int newID,double newBalance){
        this.id = newID;
        this.balance = newBalance;
    }
    

    public int getID() {
        return id;
    }

    public void setID(int setID){
        this.id = setID;
    }

    public double getBalance(){
        return balance;
    } 

    public void setBalance(double newBalance) {
        this.balance = newBalance;
    }
    public void withdraw(double amount ){
        balance -= amount;
    }

    public void deposit(double amount){
        balance += amount;
    } 
}

}
output should look like:
Enter an ID between 0 and 9, 999 to quit the game: 4 //Account with id 4 is selected
Main menu 1: check balance
2: withdraw
3: deposit
4: exit E
nter a choice: 1 // Start working with account with id 4 T
he balance is 100.0
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 2
Enter an amount to withdraw: 23
Main menu
1: check balance
2: withdraw
3: deposit
4: exit E
Enter a choice: 1
The balance is 77.0
Main menu
1: check balance
2: withdraw
3: deposit
4: exit Enter a choice: 3
Enter and amount to deposit: 10
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
The balance is 87.0
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 4 // Stop working with account with id 4
Enter an ID between 0 and 9, 999 to quit the game: 999 // End the game
Game over. Good bye!