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