That would print out this: a1010
Wrap b + c in parenthesis to force it to add them together then add it to the String.
Type: Posts; User: Parranoia
That would print out this: a1010
Wrap b + c in parenthesis to force it to add them together then add it to the String.
Create an empty String variable in the sumAll() method then concatenate a and the sum of b and c
No it wouldn't since the second method doesn't do anything at all. There wouldn't be any result from it.
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.