Sunday, September 10, 2017

Working with JPoptionPane

Challenge: Type in and run the following program. Then modify it to show the message “Hello, your name!”

Solution:

import javax.swing.JOptionPane;

public class lab1_04 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {




JOptionPane.showMessageDialog(null,"Hello World");
 }
        }

No comments:

Post a Comment