大家好,java中新加入的简单代码我想在else语句中再次显示输入消息,并覆盖我面对的"duplicate local variable string a .i num1".Please建议的最佳解决方案以下是我的代码int num1=Integer.parseInt(a);
int con1=JOptionPane.<e
我已经创建了一个JOptionPane,它只有两个按钮YES_NO_OPTION。在JOptionPane.showConfirmDialog弹出后,我想单击YES BUTTON继续打开JFileChooser,如果我单击了NO BUTTON,它应该会取消操作。{ //The condition to show the dialog if there is text inside the textArea
int dialogButton = JOptionPane.YES_NO_OPTIO