@@ -0,0 +1,267 @@
+public int countCode(String str) %7B%0A  int count = 0;%0A  for (int i=0; i%3Cstr.length()-3; i++) %7B%0A    if (str.charAt(i) == %22code%22.charAt(0) &&%0A        str.charAt(i+1) == %22code%22.charAt(1) &&%0A        str.charAt(i+3) == %22code%22.charAt(3))%0A      count++;%0A  %7D%0A  return count;%0A%7D%0A

Create countCode.java