1 /* 2 * Variant of the traditional starter program that features a widget.* 3 */ 4 package greetings; 5 import javax.swing.JOptionPane; 6 public class HelloYou { 7 public static void main(String[] args) { 8 String name = JOptionPane.showInputDialog(null, "Who are you?") ; 9 System.out.println("Hello, " + name + "!"); 10 } 11 } 12