0
Char printing
I want to print chat one after another, but I get these weird values when they print. What's wrong? https://code.sololearn.com/cJkgZmZSJh4s/?ref=app https://code.sololearn.com/cJkgZmZSJh4s/?ref=app
1 Answer
+ 2
What you see is the sum of the characters ASCII Codes. 3 (51) + 1 (49) = 100.
Put ""+ before it, to make sure String representations are used.