/home/cdesrivi/NetBeansProjects/CS1/src/greetings/HelloYou.java |
1 /* 2 * To change this license header, choose License Headers in Project Properties. 3 * To change this template file, choose Tools | Templates 4 * and open the template in the editor. 5 */ 6 package greetings; 7 8 import javax.swing.JOptionPane; 9 10 /** 11 * 12 * @author cdesrivi 13 */ 14 public class HelloYou { 15 16 /** 17 * @param args the command line arguments 18 */ 19 public static void main(String[] args) { 20 String name = JOptionPane.showInputDialog(null, "Who are you?"); 21 System.out.println("Hello, " + name + "!"); 22 } 23 24 } 25