1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | class Main { public static void main (String[] args) throws java.lang.Exception { a() && b(); } private static Boolean a(){ return true; } private static Boolean b(){ return true; } } |
Y2xhc3MgTWFpbgp7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCiAgewogICAgYSgpICYmIGIoKTsKICB9CiAgCiAgcHJpdmF0ZSBzdGF0aWMgQm9vbGVhbiBhKCl7CiAgICAgIAogICAgICByZXR1cm4gdHJ1ZTsKICB9CiAgCiBwcml2YXRlIHN0YXRpYyBCb29sZWFuIGIoKXsKICAgICAgCiAgICAgIHJldHVybiB0cnVlOwogIH0KfQ==
Main.java:5: not a statement
a() && b();
^
1 error
-
result: Compilation error (maybe you wish to see an example for Java)


