import javax.swing.JOptionPane;
/*
 * JOptionPaneHello1.java
 *
 * Created on August 16, 2005, 4:39 PM
 */

/**
 *
 * @author Bill Kraynek
 */
public class JOptionPaneHello1 {
    
    /** Creates a new instance of JOptionPaneHello1 */
    public JOptionPaneHello1() {
        // Copy the String "Hello World!" to the String variable hello
        String hello = "Hello World!";
        // This line creates a small window and displays hello in the window
        JOptionPane.showMessageDialog(null,hello);
        // Construct a String variable with 2 hellos with an eoln between them
        String twoHellos = hello + "\n" + hello;
        JOptionPane.showMessageDialog(null,twoHellos);
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        new JOptionPaneHello1();
    }
    
}

