You are viewing a single comment's thread. Return to all comments →
Java 8 using stream int count = (int)(s.chars().filter(c -> Character.isUpperCase((char)c)).count()+1); return count;
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 →
Java 8 using stream int count = (int)(s.chars().filter(c -> Character.isUpperCase((char)c)).count()+1); return count;