0
How can I use JOPTION PANE to have a user input an integer and then have it printed on the screen?
JOptionPane
3 odpowiedzi
+ 1
Use the showInputDialog() method of JOptionPane for that.
+ 1
if you mean how to convert string from user to get the integer value from it it can done like that
String s ="12";
int x = Integer.parseInt( s );
that way it converted it from string to integr and could do operations on it
+ 1
Thank You Ahmed!