Boolean Operators:&&


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)


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.