HelloYou.java
1    /* 
2        *Traditional starter program. 
3     */
4    
5    package greetings;
6    
7    import javax.swing.JOptionPane;
8    
9    public class HelloYou {
10       public static void main(String[] args) {
11           String name = JOptionPane.showInputDialog(null, "Who are you?");
12           System.out.println("Hello, " + name + "!" );
13       }
14   
15   }
16