I am wondering if this question can be solved in Java (I\'m new to the language). This is the code:
class Condition { // you can change in the main p
Using the same skip/change output approach from another answers:
class Condition { public static void main(String[] args) { try { int x = 1 / 0; if (x == x) { System.out.println("Ok"); } else { System.out.println("Not ok"); } } catch (Exception e) { System.out.println("Not ok"); } } }