title: max number of digit int scanner can take
body: <p>I am trying to read in the user input of credit card number. However I got an input mistmatch after entering 10 digits. Anything below 10 digits works fine for my code.</p>
  
  <pre><code> do{
  
      System.out.print("Please enter your creditcard number:");
      ccNum = scan4.nextInt();
      int length = String.valueOf(ccNum).length();
      if(length !=12)
      {
         ccNumInfo=false;
          System.out.println("Please enter a 12 digit card number");
      }
    }while(ccNumInfo!= true); 
  </code></pre>