Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This program will ask the user their name, record it, then ask the user what they want the program
- * to do. It will then respond saying it isn't able to do that.
- * Adrian Maznio
- * Ver. 1
- */
- import javax.swing.JOptionPane;
- public class Project1
- {
- public static void main(String[] args)
- {
- String name = JOptionPane.showInputDialog("What is your name?");
- JOptionPane.showInputDialog("What would you like me to do?");
- JOptionPane.showMessageDialog(null, "I'm sorry, " + name + ". I'm afraid I can't do that.");
- }
- }
Add Comment
Please, Sign In to add comment