title: if an integer is equal to one of the integers in an array?
body: <pre><code>int[] usedArray = new int[25];
  
  Random generator = new Random ();
  
  int randomNumber = generator.nextInt(2);
  
  System.out.println(randomNumber);
  
  if(randomNumber != usedArray){
  app();
  }
  
  while(randomNumber == 0){
  score();
  question1();
  System.out.println(randomNumber);
  usedArray[1] = 1;
  app();
  }
  </code></pre>
  
  <p>error:'incompatible operand types int &amp; int[]'</p>
  
  <p>How can I say if this number is equal to a number within the array without getting an error?</p>