error when comparing values from an integer ArrayList to a variable Integer
<p>i was trying to get values from an integer array list using 'get' method and compare it to an integer variable, but when i attempt to do so the compiler throws an error.
the code and error i receive are posted below.</p>

<p>Java Code:</p>

<pre><code>public boolean isExistGuess(int guess, ArrayList arraylist) {
    boolean found = false;
    for (int i=0; i &lt; arraylist.size(); i++) {
        if (arraylist.get(i) == guess)
            found = true;
}
}
</code></pre>

<p>Error Message:</p>

<pre><code>incompatible operand types Object and Int
</code></pre>
