Skip to content
Advertisement

Tag: counter

How to count count the number of names Java

Hi guys. I’m new to Java, currently learning Strings. I have a task to count the number of names, the length of the name must be at least two, the first letter of the name should start with upper case, the second with lower case. The issue is that I don’t know how to use the Character.isUpperCase(text.charAt(i)) and Character.isLowerCase(text.charAt(i +

Advertisement