Source code for GreaterThanExample.java:

public class GreaterThanExample
{
	public static void main(String args[])
	{
		// GreaterThanExample
		int x = 11;	// Change this value as needed.
		boolean b = (x > 10);
		if (b)
			System.out.println("Too many.");
	}
}

Output from GreaterThanExample.java:

Too many.

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the GreaterThanExample 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