Which part are you having problems with?
Splitting the full name into separate parts
Getting the first character of each part
Type: Posts; User: Norm
Which part are you having problems with?
Splitting the full name into separate parts
Getting the first character of each part
If there are spaces between the parts of the name, the parts could be separated by using the split() method.
The String class has methods that can be used to get the first character in a String.
Can you give an example? Show what is in the name variable and what value you want to have in the initials variable.
The code must assign values to all the variables used in the equation BEFORE using them in any computations.