SyntaxFix
Write A Post
Hire A Developer
Questions
You can fix it with this:
if(n == JOptionPane.YES_OPTION) { JOptionPane.showMessageDialog(null, "HELLO"); } else { JOptionPane.showMessageDialog(null, "GOODBYE"); }