Search:

Type: Posts; User: Parranoia

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,071

    Re: problem in understanding output.

    That would print out this: a1010

    Wrap b + c in parenthesis to force it to add them together then add it to the String.
  2. Replies
    8
    Views
    1,071

    Re: problem in understanding output.

    Create an empty String variable in the sumAll() method then concatenate a and the sum of b and c
  3. Replies
    8
    Views
    1,071

    Re: problem in understanding output.

    No it wouldn't since the second method doesn't do anything at all. There wouldn't be any result from it.
  4. Replies
    8
    Views
    1,071

    Re: problem in understanding output.

    In the second method, 'a' is a char, not a String. I am assuming that the compiler is getting it's ASCII value and then using the first sumAll() method.
Results 1 to 4 of 4