Help us understand the problem. What is going on with this article?

JAVA StringBuffer

More than 5 years have passed since last update.

■例

public class TestStringBuffer {
    public static void main(String[] args) {
        StringBuffer s = new StringBuffer();
        s.append("Java");
        s.append("Java1");
        System.out.println(new String(s));
    }

}

■実行結果
JavaJava1

icelandnono
24歳です 職場は渋谷です 渋谷興味ない。。 新橋とかで働きたい。。銀座がすき
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away