fork download
  1. class Ideone {
  2. public static boolean doFoo() {
  3. System.out.println("Foo called");
  4. return false;
  5. }
  6.  
  7. public static boolean doBar() {
  8. System.out.println("Bar called");
  9. return true;
  10. }
  11.  
  12. public static void main (String[] args) {
  13. boolean qux = doFoo() && doBar();
  14. System.out.println(qux);
  15. }
  16. }
Success #stdin #stdout 0.05s 2184192KB
stdin
Standard input is empty
stdout
Foo called
false