/* Return the number of times that the string "code" appears anywhere in the * given string, except we'll accept any letter for the 'd', so "cope" and * "cooe" count. */ public int countCode(String str) { int count = 0; for(int i = 0; i