Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import javax.swing*;
  2. class tourist
  3. {
  4. public static void main(String[] param)
  5. {
  6. TouristMessage();
  7. confirm();
  8. }
  9.  
  10. public static void TouristMessage()
  11. {
  12. String Comedy;
  13. String Musical;
  14. String Drama;
  15. String Other;
  16. Comedy = JOptionPane.showInputDialog("Would you be interested in Comedy, Musical, Drama or Other genre of Theater");
  17. JOptionPane.showMessageDialog("Comedy is what you're looking for? I would advise you visit...");
  18. }
  19. {
  20. if (Comedy.equals(“Musical”))
  21. JOptionPane.showMessageDialog("I see you're interested in Musical theaters, well I would advise...");
  22. }
  23. {
  24. if (Comedy.equals(“Drama”))
  25. JOptionPane.showMessageDialog("If it's Drama you seek, I would advise you visit..");
  26. return;
  27. }
  28. }
  29. System.exit(0);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement