@@ -0,0 +1,769 @@
+package codingbat.logic1;%0A%0A/*%0A * Given a non-negative number %22num%22,%0A * return true if num is within 2 of a multiple of 10. %0A * Note: (a %25 b) is the remainder of dividing a by b, so (7 %25 5) is 2. %0A * See also: Introduction to Mod %0A * %0A * nearTen(12) = true%0A * nearTen(17) = false%0A * nearTen(19) = true%0A */%0A%0Apublic class NearTenTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A%0A    NearTenTest test = new NearTenTest();%0A%0A    System.out.println(%22%3E%22 + test.nearTen(12) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.nearTen(17) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.nearTen(19) + %22%3C%22);%0A  %7D%0A%0A  public boolean nearTen(int num) %7B%0A    if (num%2510 == 0 %7C%7C num%2510 == 1 %7C%7C%0A        num%2510 == 2 %7C%7C num%2510 == 8 %7C%7C num%2510 == 9) %7B%0A      return true;%0A    %7D%0A    %0A    return false;%0A  %7D%0A%0A%7D

add nearTen task