import java.io.Closeable;
import java.io.IOException;
class MyCloseable implements Closeable {
private static MyCloseable instance = new MyCloseable();
private MyCloseable() {}
public static MyCloseable getInstance() {
return instance;
}
@Override
}
}
public class Main {
public static void main
(String[] args
) { try (MyCloseable closeable = MyCloseable.getInstance()) {
}
}
}
aW1wb3J0IGphdmEuaW8uQ2xvc2VhYmxlOwppbXBvcnQgamF2YS5pby5JT0V4Y2VwdGlvbjsKCmNsYXNzIE15Q2xvc2VhYmxlIGltcGxlbWVudHMgQ2xvc2VhYmxlIHsKICAgIHByaXZhdGUgc3RhdGljIE15Q2xvc2VhYmxlIGluc3RhbmNlID0gbmV3IE15Q2xvc2VhYmxlKCk7CgogICAgcHJpdmF0ZSBNeUNsb3NlYWJsZSgpIHt9CgogICAgcHVibGljIHN0YXRpYyBNeUNsb3NlYWJsZSBnZXRJbnN0YW5jZSgpIHsKICAgICAgICByZXR1cm4gaW5zdGFuY2U7CiAgICB9CgogICAgQE92ZXJyaWRlCiAgICBwdWJsaWMgdm9pZCBjbG9zZSgpIHRocm93cyBJT0V4Y2VwdGlvbiB7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJDbG9zZSIpOwogICAgfQp9CgpwdWJsaWMgY2xhc3MgTWFpbiB7CgogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoJICAgIHRyeSAoTXlDbG9zZWFibGUgY2xvc2VhYmxlID0gTXlDbG9zZWFibGUuZ2V0SW5zdGFuY2UoKSkgewoKICAgICAgICB9IGNhdGNoIChJT0V4Y2VwdGlvbiBlKSB7CgogICAgICAgIH0KICAgIH0KfQo=