package greetings;/* * variant of helloworld that uses the swing UI */ import javax.swing.*; public class HelloYou { public static void main(String[] args) { String name = JOptionPane.showInputDialog(null, "Who are you?"); System.out.println("Hello, " + name + "!"); } }