title: How to store a number longer than 10 digits in Java
body: <p>I have a problem with my code</p>
  
  <pre><code>nama=txtNama.getText().trim();
  int nim =Integer.parseInt(txtNIM.getText());
  alamat=txtAlamat.getText().trim();
  int telp =Integer.parseInt(txtTelp.getText());
  </code></pre>
  
  <p>In the code Integer</p>
  
  <pre><code>int nim =Integer.parseInt(txtNIM.getText());
  int telp =Integer.parseInt(txtTelp.getText());
  </code></pre>
  
  <p>I only can input 10 number, if I have input more than 10 number it will be an error</p>
  
  <blockquote>
    <p>Exception in thread "AWT-EventQueue-0"
    java.lang.NumberFormatException: For input string: "1111111111111"</p>
  </blockquote>
  
  <p>Thanks for your attention and help.</p>