import java.util.*;
public class CompareContent{
public static void main(String args[]){
String str1 = "Mr. Bondwal";
String str2 = "Mr. bondwal";
CharSequence cs ="Mr. bondwal";
System.out.println("Comparing "+str1+" with "+cs+": "+str1.contentEquals(cs));
System.out.println("Comparing "+str2+" with "+cs+": "+str2.contentEquals(cs));
}
}