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