title: checking an entire ArrayList in Java
body: <p>I have a simple idea on my mind but I am not sure how to implement it properly...
  Here's the deal:</p>
  
  <p>Say there is an ArrayList called myList of size 5 and then there is
  an Integer called testNumber. The values inside myList and/or testNumber are irrelevant. </p>
  
  <p>What I need to do is compare the testNumber variable with each of myList's integers
  and if testNumber doesn't equal to none of them, then perform an operation (i.e. <code>System.out.println("hi");</code>).</p>
  
  <p>How should I go about it..?   </p>