Source code for ANDTemperatureHumidityExample.java:

public class ANDTemperatureHumidityExample
{
	public static void main(String args[])
	{
		// ANDTemperatureHumidityExample
		int temperature = 81;
		int humidity = 99;
		if ((temperature > 80) && (humidity > 90))
		{
			System.out.println("It's not just the heat, it's the humidity!");
		}
	}
}

Output from ANDTemperatureHumidityExample.java:

It's not just the heat, it's the humidity!

--- Output Ends ---

NOTE:

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