Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing*;
- class tourist
- {
- public static void main(String[] param)
- {
- TouristMessage();
- confirm();
- }
- public static void TouristMessage()
- {
- String Comedy;
- String Musical;
- String Drama;
- String Other;
- Comedy = JOptionPane.showInputDialog("Would you be interested in Comedy, Musical, Drama or Other genre of Theater");
- JOptionPane.showMessageDialog("Comedy is what you're looking for? I would advise you visit...");
- }
- {
- if (Comedy.equals(“Musical”))
- JOptionPane.showMessageDialog("I see you're interested in Musical theaters, well I would advise...");
- }
- {
- if (Comedy.equals(“Drama”))
- JOptionPane.showMessageDialog("If it's Drama you seek, I would advise you visit..");
- return;
- }
- }
- System.exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement