Source code for ParenthesisExample.java:

public class ParenthesisExample
{
	public static void main(String args[])
	{
		// ParenthesisExample
		boolean b1, b2, b3;
		b1 = true;	// Change as needed.
		b2 = true;	// Change as needed.
		b3 = true;	// Change as needed.
		// Later
		if (b1 && (b2 || b3))
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}

Output from ParenthesisExample.java:

Yes

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the ParenthesisExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR