@@ -0,0 +1,304 @@
+// http://codingbat.com/prob/p195714%0A%0Apublic int countTriple(String str) %7B%0A  int triplesCount = 0;%0A  %0A  for (int i = 0; i %3C str.length()-2; ++i) %7B%0A    if (str.charAt(i) == str.charAt(i+1) &&%0A        str.charAt(i) == str.charAt(i+2)) %0A    %7B%0A       triplesCount++;   %0A    %7D%0A  %7D%0A  %0A  return triplesCount;%0A%7D%0A

Create countTriple.java