title: Converting a string to an integer on Android
body: <p>How do I convert a string into an integer?</p>
  
  <p>I have a textbox I have the user enter a number into:</p>
  
  <pre><code>EditText et = (EditText) findViewById(R.id.entry1);
  String hello = et.getText().toString();
  </code></pre>
  
  <p>And the value is assigned to the string <code>hello</code>.</p>
  
  <p>I want to convert it to a integer so I can get the number they typed; it will be used later on in code.</p>
  
  <p>Is there a way to get the <code>EditText</code> to a integer? That would skip the middle man. If not, string to integer will be just fine.</p>