A blank space question

wxdqz

New Member
I want to make the first letter of every word in a string UpperCase.
So I loop through the string using charAt(i) looking for blank spaces.
How do you say:

if (charAt(i) == " ")

Actually the above works but I don't trust it. I would like to know what I should be putting between the quotation marks to find a space. Thanks for any help.
 
Back
Top