@@ -0,0 +1,525 @@
+// http://codingbat.com/prob/p159979%0A%0Apublic boolean modThree(int%5B%5D nums) %7B%0A  int consecutiveEvenNumberCount = 0;%0A  int consecutiveOddNumberCount = 0;%0A  %0A  for (int i = 0; i %3C nums.length; ++i) %7B%0A    if (nums%5Bi%5D %25 2 == 0) %7B%0A      consecutiveOddNumberCount = 0;%0A      consecutiveEvenNumberCount++;%0A    %7D%0A    else %7B%0A      consecutiveEvenNumberCount = 0;%0A      consecutiveOddNumberCount++;%0A    %7D%0A    %0A    if (consecutiveEvenNumberCount == 3 %7C%7C consecutiveOddNumberCount == 3) %7B%0A      return true;%0A    %7D%0A  %7D%0A  %0A  return false;%0A%7D%0A

Create modThree.java