Search:

Type: Posts; User: Denirulz

Search: Search took 0.18 seconds.

  1. [SOLVED] Re: incompatible types: void cannot be converted to int

    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...
  2. [SOLVED] Re: incompatible types: void cannot be converted to int

    Update ;

    user = Integer.parseInt(JOptionPane.showInputDialog("Enter Your Age")); this let me execute program now, thanks!
  3. [SOLVED] Re: incompatible types: void cannot be converted to int

    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...
  4. [SOLVED] incompatible types: void cannot be converted to int

    package input;
    import javax.swing.JOptionPane;
    public class Input {


    public static void main(String[] args) {
    int user;
    user = JOptionPane.showMessageDialog(null, "Enter Your...
Results 1 to 4 of 4