/* * Varient of the traditional starter program that features a widget. */ package greetings; import javax.swing.JOptionPane; public class Helloyou { public static void main (String[]args) { String name = JOptionPane.showInputDialog(null, "who are you?"); System.out.println("Hello, " + name + "!"); } }