Martin B??hr wrote:
Excerpts from Stephen R. van den Berg's message of 2014-08-28 09:13:38 +0200:
String.Buffer b="abcdef"; b+="ghi"; write(b); b="jkl"; b+="mno"; write(b);
Then it strikes me as "obvious" that this would result in printing abcdefghi and jklmno.
what's not obvious is that b should still be of type String.Buffer.
Isn't it? You can't change the type of something by assignment, only by declaration, which is done only once.