class Testing
{
public static boolean funcThatReturnsBool()
{
return true;
}
public static void main
(String[] args
) {
if (funcThatReturnsBool())
System.
out.
println("Yay, it works"); else
boolean result = funcThatReturnsBool();
if (result)
System.
out.
println("Yay, it still works"); else
System.
out.
println("WTF (#2)?!"); }
}
Y2xhc3MgVGVzdGluZwp7CglwdWJsaWMgc3RhdGljIGJvb2xlYW4gZnVuY1RoYXRSZXR1cm5zQm9vbCgpCgl7CgkJcmV0dXJuIHRydWU7Cgl9CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykKCXsKCQlpZiAoZnVuY1RoYXRSZXR1cm5zQm9vbCgpKQoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIllheSwgaXQgd29ya3MiKTsKCQllbHNlCgkJCVN5c3RlbS5vdXQucHJpbnRsbigiV1RGPyEiKTsKCQkKCQlib29sZWFuIHJlc3VsdCA9IGZ1bmNUaGF0UmV0dXJuc0Jvb2woKTsKCQlpZiAocmVzdWx0KQoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIllheSwgaXQgc3RpbGwgd29ya3MiKTsKCQllbHNlCgkJCVN5c3RlbS5vdXQucHJpbnRsbigiV1RGICgjMik/ISIpOwoJfQp9