Very basic String question
in
Programming Questions
•
1 year ago
Hi,
What am I missing?
Thanks,
I'm writing my first Processing app and Strings aren't working the way I expect.
- String s = "foo";
- s += "bar";
I expect s to be "foobar", but whenever print s it displays as "foo";
I've also tried:
- String s = "foo";
- String t = s + "bar"; // same result
What am I missing?
Thanks,
LT
1