Boolean Array Value Comparison
<p>I have to compare Boolean values in a array by using the isPalindrom() method. I cant not get my program to accurately return the answer if an array is or is not a palindrome. It just always returns true instead of false when I purpose use a non palindrome answer. 
Code: </p>

<pre><code> public Boolean isPalindrome()
 {
    Boolean result = true;
    for(int i=0;i&lt;bits.length;i++)
    {
        Boolean a = bits[i];
        Boolean b = bits[bits.length - i - 1];
        if(a!=b)
            result = false;      
    }
    return result;    
 }
</code></pre>