how to take user input in joption pane jav

Solutions on MaxInterview for how to take user input in joption pane jav by the best coders in the world

showing results for - "how to take user input in joption pane jav"
Francesco
07 Sep 2019
1import javax.swing.JOptionPane;
2
3public class UserInput
4{
5public static void main (String[] args)
6{
7String userenters;
8
9userenters= JOptionPane.showInputDialog ("What is your name?");
10
11System.out.println("You entered" + userenters + ".");
12}
13
14}
15