title: comparing element in arraylist with an integer value in java
body: <p>I have loaded the contents of the database in an ArrayList named countList. The contents loaded are of int type. I created countList using the command</p>
  
  <p><code>ArrayList countList = new ArrayList();</code></p>
  
  <p>Now, I need to check if each contents of the arraylist is greater than three. I wrote it like</p>
  
  <pre><code>for(int i=0; i&lt; itemset.size(); i++){
      if(countList.get(i) &gt;= 3)
      {
  
      }
  }
  </code></pre>
  
  <p>When I write it simply, it shows error of bad operand type for binary operator '>='. How to do the task?</p>