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