Two boolean as one parameter value in function Java

boolean fc(boolean b) {
	return b;
}// end fc
		boolean bA = true;
		boolean bB = true;
		boolean bC = bA || bB; // true
 
		bA = true;
		bB = false;
		bC = bA || bB; // true
 
		bA = false;
		bB = true;
		bC = bA || bB; // true
 
		bA = false;
		bB = false;
		bC = bA || bB; // false
 
			if(!fc(bB||bA))
			System.out.println("false"); // false
                        else 
			System.out.println("true");
This entry was posted in Android Examples Code and tagged , , . Bookmark the permalink.


Comments are closed.

2,115 views