Hi Ben,

What type have you declared for the "age" variable ? "age" should be of int
type. If you still get the error, further analysis of the code is required.
Hence can you post the complete source?

Regards,
Babu

On Sat, Jul 25, 2009 at 10:24 AM, ben <[email protected]> wrote:

>
> hi all
>
> i need your help because i'm getting an incompatible types error for
> the following statement...
>
> age = Integer.parseInt(JOptionPane.showInputDialog(null,"Please enter
> your age : "));
>
> pls help me...
>
> thanks
> ben.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to