abstract class DDD {
  abstract boolean condition();
  abstract Object foo();
  abstract Object bar();

  void test(Object o, DDD another) {
    try {
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
      System.out.println(condition() && equals(o) ? another.foo() : another.bar());
    }
    catch (Exception e) {
      System.out.println(e);
    }
  }

}
