/*
Programmer: Danver G. Palmiano
Date Started: March 17,2009
Date Ended: March 17, 2009
*/
import javax.swing.*;
public class helloObject{//name of class
public static void main(String args[])//start main method
{
String a=JOptionPane.showInputDialog("Enter Greeting:");//ask input to user
System.out.println("Enter greeting:"+a);
System.out.println("\n"+a); //display input
}//end main method
}//end class Reverse
SAMPLE OUTPUT:
Enter greeting:
Hello!
OUTPUT:
Enter greeting:Hello!
Hello!
Monday, March 16, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment