package com.java.myapp;
public class MyClass {
public static void main(String[] args) {
String a = new String("String 1");
String b = "String 2";
StringBuffer c = new StringBuffer("String 1");
System.out.println(a.contentEquals(b));
System.out.println(a.contentEquals(c));
System.out.println(b.contentEquals(c));
}
}