I am trying to create a simple Java program where the user should input his age. If the user entered for example a letter instead of a number, he will get a message.  

What I would like to do is that in addition to the message the user should be asked for another input and that input will be checked again to see if it is a number.  

Can anyone know how can I achieve that?

```
System.out.println("2 - Set The Age");
Scanner b = new Scanner(System.in);

if (b.hasNextDouble()) {
    double lage = b.nextDouble();
    setAge(lage);
    addEmployeeMenu();
} else {
    System.out.println("You should type only numbers!");
}

```