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