(Code Review) Java if statement involving logical and(&&) operator
<p>I have started programming a few weeks ago in java/android. I want to write a small tic tac toe game as an android app but I'm having trouble with my method that will check for the winner. It is as follows:</p>

<pre><code> public void checkForWinner() { 

        if( taken[0] &amp;&amp; taken[3] &amp;&amp; taken[6]  ||
            taken[0] &amp;&amp; taken[1] &amp;&amp; taken[2] ||
            taken[2] &amp;&amp; taken[5] &amp;&amp; taken[8] ||
            taken[6] &amp;&amp; taken[7] &amp;&amp; taken[8] ||
            taken[0] &amp;&amp; taken[4] &amp;&amp; taken[8] ||
            taken[2] &amp;&amp; taken[4] &amp;&amp; taken[6] ||
            taken[1] &amp;&amp; taken[4] &amp;&amp; taken[7] ||
            taken[3] &amp;&amp; taken[4] &amp;&amp; taken[5] == 1 ){}
}
</code></pre>

<p>Here I have an array called taken that holds 9 integers, each of those integers being either a one, meaning player one owns that block, or a two, meaning player two ows that block. Current, I am trying trying all possible scenarios in which player one would be the winner but eclipse is telling me that <code>The operator &amp;&amp; is undefined for the argument type(s) int, int</code>. The error only seems to be showing for the first logical and operation of each line of the if statement. For example the first error goes up to <code>taken[0] &amp;&amp; taken[3]</code> and then disappears until the next line.</p>
