/* 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
{
{
CustomObj o1 = new CustomObj(1, "object 1");
CustomObj o2 = new CustomObj(1, "object 1");
}
}
class CustomObj {
private int id;
public CustomObj
(int id,
String desc
) { this.id = id;
this.desc = desc;
}
public int getId() {
return this.id;
}
return this.desc;
}
// @Override
// public String toString() {
// return this.desc;
// }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUN1c3RvbU9iaiBvMSA9IG5ldyBDdXN0b21PYmooMSwgIm9iamVjdCAxIik7CgkJQ3VzdG9tT2JqIG8yID0gbmV3IEN1c3RvbU9iaigxLCAib2JqZWN0IDEiKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4obzEpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihvMik7Cgl9Cn0KCgpjbGFzcyBDdXN0b21PYmogewoKCXByaXZhdGUgaW50IGlkOwoJcHJpdmF0ZSBTdHJpbmcgZGVzYzsKCglwdWJsaWMgQ3VzdG9tT2JqKGludCBpZCwgU3RyaW5nIGRlc2MpIHsKCQl0aGlzLmlkID0gaWQ7CgkJdGhpcy5kZXNjID0gZGVzYzsKCX0KCglwdWJsaWMgaW50IGdldElkKCkgewoJCXJldHVybiB0aGlzLmlkOwoJfQoKCXB1YmxpYyBTdHJpbmcgZ2V0RGVzYygpIHsKCQlyZXR1cm4gdGhpcy5kZXNjOwoJfQoKLy8JQE92ZXJyaWRlCi8vCXB1YmxpYyBTdHJpbmcgdG9TdHJpbmcoKSB7Ci8vCQlyZXR1cm4gdGhpcy5kZXNjOwovLwl9Cn0=