@@ -0,0 +1,355 @@
+// http://codingbat.com/prob/p193817%0A%0Apublic int countClumps(int%5B%5D nums) %7B%0A  int clumpCount = 0;%0A  int clumpLength = 1;%0A  %0A  for (int i = 1; i %3C nums.length; ++i) %7B%0A    if (nums%5Bi%5D == nums%5Bi-1%5D) %7B%0A      if (clumpLength %3C 2) %7B%0A        clumpCount++;%0A        clumpLength++;%0A      %7D%0A    %7D%0A    else %7B%0A      clumpLength = 1;%0A    %7D%0A  %7D%0A  %0A  return clumpCount;%0A%7D%0A

Create countClumps.java