X168: countAbc

Count recursively (no loops) the total number of "abc" and "aba" substrings that appear in the given string.

Your Answer:

x
 
1
public int countAbc(String str)
2
{
3
    
4
}
5

Feedback

Your feedback will appear here when you check your answer.