@@ -0,0 +1,1020 @@
+package codingbat.logic1;%0A%0A// The squirrels in Palo Alto spend most of the day playing.%0A// In particular, they play if the temperature is between 60 and 90 (inclusive).%0A// Unless it is summer, then the upper limit is 100 instead of 90.%0A// Given an int temperature and a boolean isSummer,%0A// return true if the squirrels play and false otherwise.%0A%0A// squirrelPlay(70, false) = true%0A// squirrelPlay(95, false) = false%0A// squirrelPlay(95, true) = true%0A%0Apublic class SquirrelPlayTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    SquirrelPlayTest test = new SquirrelPlayTest();%0A%0A    System.out.println(%22%3E%22 + test.squirrelPlay(70, false) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.squirrelPlay(95, false) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.squirrelPlay(95, true) + %22%3C%22);%0A  %7D%0A%0A  public boolean squirrelPlay(int temp, boolean isSummer) %7B%0A%0A    if (temp %3E= 60 && temp %3C= 100) %7B%0A      if (isSummer) %7B%0A        return true;%0A      %7D%0A      else if (temp %3C= 90) %7B%0A        return true;%0A      %7D%0A    %7D%0A%0A    return false;%0A  %7D%0A%0A%7D%0A

add squirrelPlay task