Skip to content

codigo de prueba #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tecnico-49 opened this issue Mar 14, 2025 · 1 comment
Open

codigo de prueba #219

tecnico-49 opened this issue Mar 14, 2025 · 1 comment

Comments

@tecnico-49
Copy link

Describe the bug

Versions

  • Copilot for Xcode: [e.g. 0.25.0]
  • Xcode: [e.g. 16.0]
  • macOS: [e.g. 14.6.1]

Steps to reproduce
1.
2.

Screenshots

Logs

Additional context

@tecnico-49
Copy link
Author

public class Calculator {

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);
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant