Answers for "how to take user input in joption pane jav"

1

how to take user input in joption pane jav

import javax.swing.JOptionPane;

public class UserInput
{
public static void main (String[] args)
{
String userenters;

userenters= JOptionPane.showInputDialog ("What is your name?");

System.out.println("You entered" + userenters + ".");
}

}
Posted by: Guest on June-03-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language