/* 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
{
{
// your code goes here
String a
= "hello" + " world!"; boolean compare = (a == b); // This return true
a = "hello";
b = "hel" + "lo";
compare = (a == b); // This return false
a = "Bye";
a += " bye!";
b = "Bye bye!";
compare = (a == b); // This return false
a = "Bye bye!";
b = "Bye";
b += " bye!";
compare = (a == b); // This return false
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlTdHJpbmcgYSA9ICJoZWxsbyIgKyAiIHdvcmxkISI7CgkJU3RyaW5nIGIgPSAiaGVsbG8gd29ybGQhIjsKCQlib29sZWFuIGNvbXBhcmUgPSAoYSA9PSBiKTsgLy8gVGhpcyByZXR1cm4gdHJ1ZQoJCVN5c3RlbS5vdXQucHJpbnRsbihjb21wYXJlKTsKCQlhID0gImhlbGxvIjsKCQliID0gImhlbCIgKyAibG8iOwoJCWNvbXBhcmUgPSAoYSA9PSBiKTsgLy8gVGhpcyByZXR1cm4gZmFsc2UKCQlTeXN0ZW0ub3V0LnByaW50bG4oY29tcGFyZSk7CgkJYSA9ICJCeWUiOwoJCWEgKz0gIiBieWUhIjsKCQliID0gIkJ5ZSBieWUhIjsKCQljb21wYXJlID0gKGEgPT0gYik7IC8vIFRoaXMgcm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