Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options = JOptionPane.showInputDialog("How many options would you like?"+
- "nnPlease note that you must input a number between 1-10");
- try{
- numberofoptions = Integer.parseInt(options);
- }
- catch(NumberFormatException e){
- JOptionPane.showMessageDialog(null, "Remember to only input a numerical integer");
- }
- JOptionPane.showOptionDialog(null, "Please select a restaurant.", "Restaurant Selector",
- JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, Restaurants, Restaurants[0]);
- exit = JOptionPane.showConfirmDialog(null, "Do you wish to continue?", "Restaurant Selector",
- JOptionPane.YES_NO_OPTION);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement