You are viewing a single comment's thread. Return to all comments →
My Java 8 Solution
public static int camelcase(String s) { int count = 1; for (char c : s.toCharArray()) { if (Character.isUpperCase(c)) { count++; } } 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 →
My Java 8 Solution