@@ -0,0 +1,607 @@
+package codingbat.array2;%0A%0A/*%0A * Given an array of ints, return true if the array contains %0A * a 2 next to a 2 somewhere. %0A * %0A * has22(%7B1, 2, 2%7D) = true%0A * has22(%7B1, 2, 1, 2%7D) = false%0A * has22(%7B2, 1, 2%7D) = false%0A * %0A */%0A%0Apublic class Has22Test %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    Has22Test test = new Has22Test();%0A%0A    System.out.println(%22%3E%22 + test.has22(new int%5B%5D %7B1, 2, 2%7D) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.has22(new int%5B%5D %7B1, 2, 1, 2%7D) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.has22(new int%5B%5D %7B2, 1, 2%7D) + %22%3C%22);%0A  %7D%0A%0A  public boolean has22(int%5B%5D nums) %7B%0A    return false;%0A  %7D%0A%0A%7D%0A

inital task has22