SyntaxFix
Write A Post
Hire A Developer
Questions
int opcion = JOptionPane.showConfirmDialog(null, "Realmente deseas salir?", "Aviso", JOptionPane.YES_NO_OPTION); if (opcion == 0) { //The ISSUE is here System.out.print("si"); } else { System.out.print("no"); }