displaying only 5 number in acc and password java : i need user to only input 5 number for acc bumber and password i try this one but i can still run with more than 5 number .. 


    public static void login() throws IllegalLoginException {
         
        int acc, password;
        System.out.println("Welcome!");
        System.out.print("Enter your account number: ");
        acc = in.nextInt();

       if (acc > 010000 && acc < 9999){

              throw new IllegalLoginException("from Exception: Account number not enough 5 digits");
        
        }
        System.out.print("Enter your password number: ");
        password = in.nextInt();

        if (password >= 12345 && password <= 9999) {

              throw new IllegalLoginException("from Exception: 5 Digits password required!");
        }
        System.out.println("\nHello there, " + acc);
    }