📌  相关文章
📜  java代码示例中的字符串缓冲区

📅  最后修改于: 2022-03-11 14:52:17.195000             🧑  作者: Mango

代码示例1
StringBuffer buffer = new StringBuffer("Harvard"); 
// mutable we modify object
        buffer.append(" School"); 
// append method we are calling from Buffer ** synchronized means slow

        System.out.println(buffer); // Harvard School