/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
char chars[] = {'a', 'b', 'c', 'd'};
if (s1 == s2) {
System.
out.
println("String s1 and s2 are same"); } else if (s1.equals(s2)) {
System.
out.
println("Contents of String s1 and s2 are same"); }
if (s2 == s3) {
System.
out.
println("String s2 and s3 are same"); }
if (s2.equals(s3)) {
System.
out.
println("Contents of String s2 and s3 are same"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCQkJY2hhciBjaGFyc1tdID0geydhJywgJ2InLCAnYycsICdkJ307CgkJU3RyaW5nIHMgID0gbmV3IFN0cmluZyhjaGFycyk7CgkJU3lzdGVtLm91dC5wcmludGxuKHMpOwoJCQoJCVN0cmluZyBzTmV3ID0gbmV3IFN0cmluZyhjaGFycywgMSwgMyk7CgkJU3lzdGVtLm91dC5wcmludGxuKHNOZXcpOwoJCQoJCVN0cmluZyBzMSA9IG5ldyBTdHJpbmcoY2hhcnMpOwoJCVN0cmluZyBzMiA9IG5ldyBTdHJpbmcoczEpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihzMSk7CgkJU3lzdGVtLm91dC5wcmludGxuKHMyKTsKCQkKCQlpZiAoczEgPT0gczIpIHsKCQkJU3lzdGVtLm91dC5wcmludGxuKCJTdHJpbmcgczEgYW5kIHMyIG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