-
July 23rd, 2012, 10:49 AM
#1
conversation trainer
What does everyone think about this as a simple trainer for little kids on how to start a conversation?
import javax.swing.JOptionPane;
public class Exercise_1_8 {
public static void main(String[] args)
{
String name = JOptionPane.showInputDialog("What is your name?");
JOptionPane.showInputDialog(null, "Hello, " + name + "! How are you today?");
JOptionPane.showInputDialog(null, "I'm happy to hear that!");
JOptionPane.showInputDialog(null, "I'm doing great! Thanks for asking!");
JOptionPane.showMessageDialog(null, "Bye, " + name);
System.exit(0);
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|