package lectures.state_properties;
import util.annotations.WebDocuments;
import bus.uigen.ObjectEditor;
@WebDocuments({"Lectures/StateProperties.pptx", "Lectures/StateProperties.pdf", "Videos/StateProperties.avi"})
public class AStringAndStringBufferDemoer {
public void demoStringExtension() {
String s = "hello";
String hello = s;
s += " world";
System.out.println( s == hello);
}
public void demoStringBufferExtension() {
StringBuffer s = new StringBuffer("hello");
StringBuffer hello = s;
s.append(" world");
System.out.println(s == hello);
}
public static void main(String[] args) {
ObjectEditor.edit(new AStringAndStringBufferDemoer());
}
}