No output for a certain range
<p>I'm having the same troubles with my program again. </p>

<p>The issue this time is that the program doesn't output anything for between 59 and 20. The program just terminates. As far as I can tell, all the if statements are formatted the same way but maybe I just need some fresh eyes on it because my brain is blocking out the error</p>

<p>Here's the code:</p>

<pre><code>import java.util.Scanner;

public class LazyDaysCamp
{
    public static void main (String[] args)
    {
        int temp;
        Scanner scan = new Scanner(System.in);

        System.out.println ("What's the current temperature?");
        temp = scan.nextInt();
        if (temp &gt; 95 || temp &lt; 20)
        {
            System.out.println ("Visit our shops!");
        } else if (temp &lt;= 95)
            if (temp &gt;= 80)
            {
                System.out.println ("It's good weather for swimming");
            } else if (temp &gt;=60) 
                if (temp &lt; 80)
                {
                    System.out.println ("It's good weather for tennis");
                } else if (temp &gt;= 40)
                    if (temp &lt; 60)
                    {
                        System.out.println ("It's good weather for golf");
                    } else if (temp &gt;= 20)
                        if (temp &lt; 40)
                        {
                            System.out.println ("It's good weather for skiing"); 
                        }
                    }
                }                                                                                                                                                                                                                                                                  
            }
        }
    }
}
</code></pre>

<p>I know the if statements are a bit excessive as someone pointed out but I'm required to do so (cascading if). Otherwise I'd use logical operators. </p>

<p>Here's the output:</p>

<pre><code> ----jGRASP exec: java LazyDaysCamp

What's the current temperature?
100
Visit our shops!

 ----jGRASP: operation complete.

 ----jGRASP exec: java LazyDaysCamp

What's the current temperature?
85
It's good weather for swimming

 ----jGRASP: operation complete.

 ----jGRASP exec: java LazyDaysCamp

What's the current temperature?
70
It's good weather for tennis

 ----jGRASP: operation complete.

 ----jGRASP exec: java LazyDaysCamp

What's the current temperature?
50

 ----jGRASP: operation complete.

 ----jGRASP exec: java LazyDaysCamp

What's the current temperature?
30

 ----jGRASP: operation complete.

 ----jGRASP exec: java LazyDaysCamp

What's the current temperature?
15
Visit our shops!

 ----jGRASP: operation complete.
</code></pre>
