title: Java Integer array indexOf
body: <p>I created an Integer array and I want to insert an index of a string;</p>
  
  <pre><code>indexes[i] = theText.indexOf(R.getString(0), i);
  </code></pre>
  
  <p>But I get an error about using indexOf.</p>
  
  <p>How can I fix that?</p>
  
  <p>*I can't change the array to int because I have a comparison of array index to null</p>
  
  <p>Thanks!</p>