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 public class HelloYou {public static void main(String[] args) {String name = JOptionPane.showInputDialog(null, "Who are you?"); 10 System.out.println("Hello, " + name + "!");} 11 } 12