1 /* 2 * Variant of the traditional starter program that features a widget. 3 */ 4 5 6 package greetings; 7 8 import javax.swing.JOptionPane; 9 import java.sql.SQLOutput; 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 } 18