Kotlinlearncs.online LogoJava
Return to List

Solve: Count Code

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Return the number of times that "code" appears anywhere in the given non-null String. Except we'll accept any letter for the 'd', so "cope" and "cooe" both count.

int countCode(String input) {
return 0; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: