The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method showInputDialog(Object) in the type JOptionPane is not applicable for the arguments ()
Syntax error on tokens, delete these tokens
The method showInputDialog(Object) in the type JOptionPane is not applicable for the arguments ()
Syntax error on tokens, delete these tokens
The method showInputDialog(Object) in the type JOptionPane is not applicable for the arguments ()
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
Syntax error on tokens, delete these tokens
n cannot be resolved
Syntax error on tokens, Expression expected instead

Re: JOptionPane error in eclipse

You could have said "Thanks" then.

Please post your code, properly indented, in code tags.

Your open and close quotes are the wrong kind of quotes. Be sure that whatever editor you're using is using the plain text version of the quote, ' " ', character. If you need help setting your editor to do that, let us know which one you're using.

Re: JOptionPane error in eclipse

Perhaps errors like this are the result of a missing or extra brace/bracket/semicolon/quote.... I would check all of those
Please use code tags when posting code to the forum. Assistance can be found in the Announcements thread