public class MainClass { public static void main(String[] argv) { int i = 1; int j = 1; System.out.println(i / (j - 1)); } }
Exception in thread "main" java.lang.ArithmeticException: / by zero at MainClass.main(MainClass.java:6)