@@ -0,0 +1,843 @@
+package codingbat.logic1;%0A%0A//Given a number n, return true if n is in the range 1..10, inclusive.%0A//Unless %22outsideMode%22 is true, %0A//in which case return true if the number is less or equal to 1,%0A//or greater or equal to 10. %0A//%0A//in1To10(5, false) = true%0A//in1To10(11, false) = false%0A//in1To10(11, true) = true%0A%0Apublic class In1To10Test %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A%0A    In1To10Test test = new In1To10Test();%0A%0A    System.out.println(%22%3E%22 + test.in1To10(5, false) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.in1To10(11, false) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.in1To10(11, true) + %22%3C%22);%0A  %7D%0A%0A  public boolean in1To10(int n, boolean outsideMode) %7B%0A    if (outsideMode) %7B%0A      if (n %3C= 1 %7C%7C n %3E= 10) %7B%0A        return true;%0A      %7D%0A    %7D%0A    else if (n %3E= 1 && n %3C= 10) %7B%0A      return true;%0A    %7D%0A%0A    return false;%0A  %7D%0A%0A%7D%0A

add task in1To10