Java diff string and StringBuffer Java diff String类和StringBuffer类 Java Optimum 方法 Java diff string and StringBuffer public class Sample { public static void main(String args[]) { String str = new String("Hi welcome to codingdict"); System.out.println(str);StringBuffer sBuffer = new StringBuffer("test"); sBuffer.append(" String Buffer"); System.out.println(sBuffer); } } Java diff String类和StringBuffer类 Java Optimum 方法