Coding-ninjas
Coding-ninjas copied to clipboard
condition when string does not contain any character or word in COUNTWORD program
// should be implemented before for loop if (str == null || str.isEmpty()) { return 0; }