JOptionPane Java Programming Part 2, in this article i will share to you about read input data from keyboard using JOptionpane and show inputed data using JOptionPane too. For read input data from keyboard on this section, i will tell to you using ShowInputDialaog and for show inputed data using ShowMessageDialog. Before it you must know that default Data type for input keyboard is String.
okay this is sample code for read and show input from keyboard :
READ MORE - JOptionPane Java Programming Part 2
okay this is sample code for read and show input from keyboard :
import javax.swing.JOptionPane;okay, try this code in your java editor run and modified this code :D
public class tryinput {
public static void main(String[] args){
String test="";
test = JOptionPane.ShowInputDialog("Please Enter Your Site");
String test2 = "you inputed" + test + "as your site";
JOptionPane.ShowMessageDialog("null, test2");
}
}


