
Originally Posted by
CSUTD
Sorry, didn't consider that spoon feeding since OP already knows how to write a for loop. I know it will work that way but he didn't finish it.
Yes, I read the post(didn't finish it). He is wanting to print out how many characters were in the string. The charAt(0) is wrong because the program doesn't want to return a string; the program wants to return how many characters are in the string...
ex) If you type in the word "sports" the program should print out "6."
Again, no, absolutely not, that's not the OP's goal at all. Please please please don't offer "help" if you don't even know what the OP is asking.