Kotlinlearncs.online LogoJava
Return to List

Solve: Count XX

Imported By: Geoffrey Challen
/ Version: 2021.5.0

Count the number of "xx" in the given String. We'll say that overlapping is allowed, so "xxx" contains 2 "xx".

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

Related Lessons

Stuck? You may find these lessons helpful: