You are viewing a single comment's thread. Return to all comments →
Java!
public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); int terms = 1; for (int i = 0; i < s.length(); i++) { String letter = Character.toString(s.charAt(i)); if (letter == letter.toUpperCase()) { terms++; } } System.out.println(terms); } }
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!