title: bad operand types for binary operator "&" java
body: <p>The error shows this line </p>
  
  <pre><code> if ((a[0] &amp; 1 == 0) &amp;&amp; (a[1] &amp; 1== 0) &amp;&amp; (a[2] &amp; 1== 0)){
  </code></pre>
  
  <p>This is the whole code: </p>
  
  <pre><code>public class Ex4 {
  
    public static void main(String[] args) {
    int [] a = new int [3];
    if(args.length == 3)
    {
        try{
          for(int i = 0; i &lt; args.length; i++)
          {
          a[i] = Integer.parseInt(args[i]);
          }
          }
          catch(NumberFormatException e){
              System.out.println("Wrong Argument");
         }
        if ((a[0] &amp; 1 == 0) &amp;&amp; (a[1] &amp; 1== 0) &amp;&amp; (a[2] &amp; 1== 0)){
          System.out.println("yes");
        }
      else {
          System.out.println("no");
      }
    }
    else{
        System.out.println("Error");
      }
  }
  }
  </code></pre>
  
  <p>I've fixed the code: </p>
  
  <pre><code>if ((a[0] &amp; 1) == 0 &amp;&amp; (a[1] &amp; 1) == 0 &amp;&amp; (a[2] &amp; 1) == 0){
  </code></pre>
  
  <p>Was an issue with the brackets, updated for anyone in the future.</p>