Just a simple one, I've been learning Java for like 3 hours now lol so i tried some simple thing.
First it pops up dialog and ask for your age, if you're under 18 it shows another dialog with text...
Type: Posts; User: Denirulz
Just a simple one, I've been learning Java for like 3 hours now lol so i tried some simple thing.
First it pops up dialog and ask for your age, if you're under 18 it shows another dialog with text...
Update ;
user = Integer.parseInt(JOptionPane.showInputDialog("Enter Your Age")); this let me execute program now, thanks!
Hey Joe, thanks for answer, I'm not getting error with int user; line , only at user = JOptionPane.showMessageDialog(null, "Enter Your Age""); and it says incompatible types: void cannot be...
package input;
import javax.swing.JOptionPane;
public class Input {
public static void main(String[] args) {
int user;
user = JOptionPane.showMessageDialog(null, "Enter Your...