@@ -0,0 +1,313 @@
+// http://codingbat.com/prob/p123614%0A%0Apublic int countCode(String str) %7B%0A  int numberOfValidCodeInstances = 0;%0A  for (int i = 0; i %3C str.length()-3; ++i) %7B%0A    if (str.substring(i, i+2).equals(%22co%22) && str.charAt(i+3) == 'e') %7B%0A      numberOfValidCodeInstances++;%0A    %7D%0A  %7D%0A  return numberOfValidCodeInstances;%0A%7D%0A

Create countCode.java