我有一个函数,它应该根据用户对JOptionPane YES_NO_OPTION消息框的响应返回一个值。这个程序运行得很好,直到你有了重新启动或者退出的选项。import javax.swing.JOptionPane;
public static void main(String[];
JOptionPane.showConfirmDialog(null, "Would you like to begin again?", g);
int c =JOptionPane.showConfirmDialog(null, "Are you hungry?", "1", JOptionPane.YES_NO_OPTION);JOptionPane.showMessageDialog(null,, "Order",JOptionPane.PLAIN_MESSAGE);else {JOptionPane</e