You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public int divide(int numerator, int denominator) {
return numerator / denominator; // Posible división por cero
}
public static void main(String[] args) {
Calculator calc = new Calculator();
int result = calc.divide(10, 0); // Llamada que puede generar una excepción
System.out.println("Result: " + result);
}
Describe the bug
Versions
Steps to reproduce
1.
2.
Screenshots
Logs
Additional context
The text was updated successfully, but these errors were encountered: