Won't validate because it thinks I do not have the divideByZero method when I clearly do. I must be missing something obvious.
package com.codegym.task.task09.task0919;
/*
Dividing by zero
*/
public class Solution {
public static void main(String[] args) {
try {
divideByZero(10);
}
catch (ArithmeticException e) {
e.printStackTrace();
}
}
public static void divideByZero(int i) {
System.out.println(i / 0);
}
}