title: Java - Check if item is in array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1128723/in-java-how-can-i-test-if-an-array-contains-a-certain-value">In Java, how can I test if an Array contains a certain value?</a>  </p>
  </blockquote>
  
  
  
  <p>I have an array setup as follows:</p>
  
  <pre><code>Material[] blockedlevel1 = {
              Material.mymaterialone, Material.mymaterialtwo  
          };
  </code></pre>
  
  <p>How do I see if a Material is in this array?</p>