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