I am looking for the shortest, simplest and most elegant way to count the number of capital letters in a given string.
Thanks
Sean:confused:
Printable View
I am looking for the shortest, simplest and most elegant way to count the number of capital letters in a given string.
Thanks
Sean:confused:
Like I said in your other post: http://www.javaprogrammingforums.com...structure.html
Check out the String and Character APIs for useful functions.
String (Java Platform SE 6)
Character (Java Platform SE 6)