/* 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
{
{
LinkedList<String> compras = new LinkedList<String>();
LinkedList<String> linkedEventos = new LinkedList<String>();
compras.add("compra1");
compras.add("compra2");
linkedEventos.add("linkedevento1");
linkedEventos.add("linkedevento2");
System.
out.
println(linkedEventos
);
linkedEventos = compras;
compras.add("compra3");
System.
out.
println(linkedEventos
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUxpbmtlZExpc3Q8U3RyaW5nPiBjb21wcmFzID0gbmV3IExpbmtlZExpc3Q8U3RyaW5nPigpOwoJCUxpbmtlZExpc3Q8U3RyaW5nPiBsaW5rZWRFdmVudG9zID0gbmV3IExpbmtlZExpc3Q8U3RyaW5nPigpOwoJCQoJCWNvbXByYXMuYWRkKCJjb21wcmExIik7CgkJY29tcHJhcy5hZGQoImNvbXByYTIiKTsKCQlsaW5rZWRFdmVudG9zLmFkZCgibGlua2VkZXZlbnRvMSIpOwoJCWxpbmtlZEV2ZW50b3MuYWRkKCJsaW5rZWRldmVudG8yIik7CgkJCgkJU3lzdGVtLm91dC5wcmludGxuKGNvbXByYXMpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihsaW5rZWRFdmVudG9zKTsKCQkKCQlsaW5rZWRFdmVudG9zID0gY29tcHJhczsKCQljb21wcmFzLmFkZCgiY29tcHJhMyIpOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbihjb21wcmFzKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4obGlua2VkRXZlbnRvcyk7Cgl9Cn0=