• + 0 comments

    Java 8 using stream int count = (int)(s.chars().filter(c -> Character.isUpperCase((char)c)).count()+1); return count;