Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    13
    Views
    1,213

    Re: my code is not compiling

    Which part are you having problems with?
    Splitting the full name into separate parts
    Getting the first character of each part
  2. Replies
    13
    Views
    1,213

    Re: my code is not compiling

    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.
  3. Replies
    13
    Views
    1,213

    Re: my code is not compiling

    Can you give an example? Show what is in the name variable and what value you want to have in the initials variable.
  4. Replies
    13
    Views
    1,213

    Re: my code is not compiling

    The code must assign values to all the variables used in the equation BEFORE using them in any computations.
Results 1 to 4 of 4