/* 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
{
// @FunctionalInterface
public interface MyLambda {
public default int hashCode() {
return 0;
}
}
{
HashSet<MyLambda> set = new HashSet<>();
set.add(() -> "Greg");
set.add(() -> "Mark");
System.
out.
println(set.
size()); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKLy8JQEZ1bmN0aW9uYWxJbnRlcmZhY2UKCXB1YmxpYyBpbnRlcmZhY2UgTXlMYW1iZGEgewoJCXB1YmxpYyBkZWZhdWx0IGludCBoYXNoQ29kZSgpIHsKCQkJcmV0dXJuIDA7CgkJfQoJCVN0cmluZyBtZXNzYWdlKCk7Cgl9CgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUhhc2hTZXQ8TXlMYW1iZGE+IHNldCA9IG5ldyBIYXNoU2V0PD4oKTsKCQlzZXQuYWRkKCgpIC0+ICJHcmVnIik7CgkJc2V0LmFkZCgoKSAtPiAiTWFyayIpOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbihzZXQuc2l6ZSgpKTsKCX0KfQ==