input string, output upper/lowercase character

Finding the uppercase and lowercase characters in a string

Posted 28 September 2009 - 03:15 PM

I wrote this program, and I am having problems with it. In my countLetters method, I figure that no one will enter a line over 50 characters. This is what I have so far, but I can't get past these errors....

Re: Finding the uppercase and lowercase characters in a string

you do not need an array of the number of letter to count just nbLower and nbUpper
also if you change the case of your inut String using toLowerCase() and toUpperCase() sure that all your letters will be lower or upper case

Re: Finding the uppercase and lowercase characters in a string

you do not need an array of the number of letter to count just nbLower and nbUpper
also if you change the case of your inut String using toLowerCase() and toUpperCase() sure that all your letters will be lower or upper case

review a bit your logic

I am not trying to turn all of them into upper or lower, I made a little mistake, is was supposed to be isUpper or isLower, I need to count the Upper case characters and the lower case characters.