X35: countCode

Write a function in Java that counts the number of times the string "code" appears anywhere in the given string str, except that we'll accept any letter in place of the 'd', so for example, "cope" and "cooe" count.

Your Answer:

Reset

Feedback

Your feedback will appear here when you check your answer.