title: Android app, check if EditText with INTEGER is empty or not
body: <p>I have a problem trying to check if a EditText is empty or not. I have found a lot of solutions but all of them reffer to a string variable.
  I wanna check if a value that is Integer between 0 and 10 is empty or not.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>int value = Integer.parseInt(instances.getText().toString());;
  if (value &gt; 10)
      Toast.makeText(getApplicationContext(), "Enter a value between 0 and 10!", Toast.LENGTH_SHORT).show();
  else if (value &lt; 0)
      Toast.makeText(getApplicationContext(), "Enter a value between 0 and 10!", Toast.LENGTH_SHORT).show();
  else if (value &gt;= 0 &amp;&amp; value &lt;= 10) {
      schimba(v);
  }
  </code></pre>
  
  <p>If I enter a number > 10 I get the toast, same if I enter a negative number.The function work great when I enter the number between 0 and 10 but if I let empty I get an error and I need to create the condition but I can't find something to integer.</p>
  
  <p>Any help would be great, thank you in advance.</p>