The following JOptionPane input dialog displays a question-message dialog to the use and returns the user response as String.
Code:String language= JOptionPane.showInputDialog(null,
"Which programming language you use?");
Printable View
The following JOptionPane input dialog displays a question-message dialog to the use and returns the user response as String.
Code:String language= JOptionPane.showInputDialog(null,
"Which programming language you use?");