/home/ssingh6/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 import javax.swing.JOptionPane; 8 9 /** 10 * 11 * @author ssingh6 12 */ 13 public class HelloYou { 14 15 /** 16 * @param args the command line arguments 17 */ 18 public static void main(String[] args) { 19 String name = JOptionPane.showInputDialog(null,"Who are you"); 20 System.out.println("Hello, "+name+ "!"); 21 } 22 23 } 24