### Source code for TemperatureExample3.java:

>     public class TemperatureExample3
>     {
>     	public static void main(String args[])
>     	{
>     		// TemperatureExample3
>     		int temperature = 70;
>     		if (temperature > 90)
>     		{
>     			System.out.println("It's too hot!");
>     			System.out.println("I want to go home!");
>     		}
>     		else
>     		{
>     			System.out.println("It's a warm day.");
>     			System.out.println("Let's stay here.");
>     		}
>     		System.out.println("Have a nice day.");
>     	}
>     }

### Output from TemperatureExample3.java:

    It's a warm day.
    Let's stay here.
    Have a nice day.

--- Output Ends ---

#### NOTE:

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

#### To run this program:

`
- javac TemperatureExample3.java
- java TemperatureExample3
`

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