Why does the following solution not work?
if(a < 100 && a > 50) {
System.out.println("The number " + a + " is in the interval.");
} else {
System.out.println("The number " + a + " is not in the interval.");
}