You are viewing a single comment's thread. Return to all comments →
int words = 1`; for (char ch : s.toCharArray()) { if (Character.isUpperCase(ch)) { words += 1; } } return words;
Seems like cookies are disabled on this browser, please enable them to open this website
CamelCase
You are viewing a single comment's thread. Return to all comments →