CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Location
    USA
    Posts
    2

    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);
    }
    }

  2. #2
    Join Date
    Apr 2012
    Posts
    29

    Re: conversation trainer

    Please lift up the banner in NSF math forums. I am leaving next week anyway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured