title: how to parsing 10 digit number text into integer in java
body: <p>I have set <code>"phone"</code> as <code>int</code> of 10 digit in database and take input as text which I parse using</p>
  
  <pre><code>String phone1=request.getParameter("phone");
  
  int phone =Integer.parseInt(phone1);
  </code></pre>
  
  <p>but it does not work why?</p>