@@ -0,0 +1,313 @@
+public int countClumps(int%5B%5D nums) %7B%0A  int clumps = 0;%0A  int clumpSize = 0;%0A  for (int i=0; i%3Cnums.length; i+= clumpSize) %7B%0A    int k;%0A    for (k=i+1; k%3Cnums.length; k++) %7B%0A      if (nums%5Bi%5D != nums%5Bk%5D) %7B%0A        break;%0A      %7D%0A    %7D%0A    clumpSize = k - i;%0A    if (clumpSize %3E 1) clumps++;%0A  %7D%0A  return clumps;%0A%7D%0A

Create countClumps.java