title: equalsIgnoreCase on a String array?
body: <p>I am trying to write an if statement that checks each of the indexes of a String array.</p>
  
  <p>The array is</p>
  
  <pre><code>private static final String[] letterGrades = {"A","AB","B","BC","C","CD","D","F"};
  </code></pre>
  
  <p>and I am trying to write the if statement something like</p>
  
  <pre><code>if(grade != letterGrades[0].equalsIgnoreCase() | grade != letterGrades[1].equalsIgnoreCase() | ... | grade != letterGrades[7].equalsIgnoreCase();){
  //statements to run
  }
  </code></pre>
  
  <p>and it obviously does not want to work. I'm curious how to get this to work as I would like to use the array, if possible.</p>