How to accept Integers or Strings JAVA : <pre><code>   private void CreateAccount() {
        // TODO Auto-generated method stub
        String firstName, accountType="";
        double initialDesposit = 0;                      
        boolean valid = false;
        int Current = 1;
        int Saving = 2;
        while (!valid){                    //Only can select current or saving account
            System.out.println("Enter account Type");
            System.out.println("1:Current");          
            System.out.println("2:Saving");
             accountType = keyboard.nextLine(); //User Input of the Account Type 


            if (accountType.equalsIgnoreCase("Current") || accountType.equalsIgnoreCase("Saving")|| accountType.equals(1) || accountType.equals(2) ){
                valid = true;  //If selection is true 
            }else{
                System.out.println("Invalid");
            }
        }
</code></pre>

<p>I am trying to make it that when user is displayed option they can either choose the option by number or letters i.e. instead of typing "Saving" user can simply just press "2" and it is recorded as Saving. </p>
