Boolean Operators:&&

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
Boolean Operators: &&

<In what way does your code behave incorrectly? Include ALL error messages.>
shows an error at “&&”
Am i missing something?

```

public class And {
public static void main(String args) {

	boolean Bob=true;
boolean Mac=false;

  
  if (Mac=false && Bob=true)
  {System.out.println("True");}
}

}

<do not remove the three backticks above>

Are you sure that you are COMPARING Mac and Bob?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.