Boolean Operators:&&


#1



Boolean Operators: &&


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");}
	}
}


#2

Are you sure that you are COMPARING Mac and Bob?


#3

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