・StringやStringBuilderは標準APIで提供されている ...
//appendもinsertも空文字や文字列を足し算したものを引数にできる //整数で範囲指定して消す //indexOfと組み合わせると文字で範囲選択もできる。 //0と1の間の文字を消す仕組みなので、最終文字の戻り値に+1必要 sb. append ("恐ろしい悪魔"); ...
**StringBuilder in Java **represents a mutable sequence of characters. Since the String Class in Java creates an immutable sequence of characters, the StringBuilder class provides an alternative to ...