daily pastebin goal
22%
SHARE
TWEET

APCS_SHORTS_C1X7_DialogViewer.java

calcpage Oct 4th, 2013 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. DialogViewer.java       MrG     2013.1003
  3. purpose:                practice with JOptionPane
  4. required files:         DialogViewer.java               main class
  5. translator phase:       javac DialogViewer.java
  6. interpreter phase:      java DialogViewer
  7. */
  8.  
  9. //imported class
  10. import javax.swing.JOptionPane;
  11.  
  12. //main method
  13. public class DialogViewer
  14. {
  15.         public static void main(String[] args)
  16.         {
  17.                 JOptionPane.showMessageDialog(null, "Hello, World!");
  18.                 System.exit(0);
  19.         }
  20. }
RAW Paste Data
Top