文字列を扱うには、こちらにあるようにStringやStringBuilderに代入する 数値と文字列の連結 「数値 + 文字列」や「文字列 + 数値」は最終的に文字列として扱う。 しかし、動作が異なる "a"+1+2 → 最初から文字列として扱い, a12 1+2+"a" → 計算後に文字列として ...
StringBuffer is a mutable sequence of characters, similar to the String class, but with the key difference that StringBuffer can be modified after it is created. It ...