Guest User

Untitled

a guest
Nov 18th, 2018
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /**
  2. * This program will ask the user their name, record it, then ask the user what they want the program
  3. * to do. It will then respond saying it isn't able to do that.
  4. * Adrian Maznio
  5. * Ver. 1
  6. */
  7. import javax.swing.JOptionPane;
  8. public class Project1
  9. {
  10. public static void main(String[] args)
  11. {
  12. String name = JOptionPane.showInputDialog("What is your name?");
  13. JOptionPane.showInputDialog("What would you like me to do?");
  14. JOptionPane.showMessageDialog(null, "I'm sorry, " + name + ". I'm afraid I can't do that.");
  15. }
  16. }
Add Comment
Please, Sign In to add comment