Quote:I know how I can get the first letter for fist word by charAt(0) ,but I don't know the second word.
OK, you're halfway there.
What you need to do is extract the first and last name from the full name entered by the user, then apply your
knowledge to get the first letter of each component. Finally, convert the text to be returned to uppercase and you're done.