Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- public class HelloWorld3
- {
- public static void main(String[] args)
- {
- String myName = JOptionPane.showInputDialog("name? ");
- System.out.println("Hello, " + myName + ", how about a nice game of chess?");
- System.exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement