Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The method If(boolean) is undefined

807589Oct 9 2008 — edited Oct 9 2008
"The method If(boolean) is undefined "

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method If(boolean) is undefined for the type TestCalculator
Syntax error, insert ";" to complete Statement

I'm having some trouble using conditional statements in my code for some reason. I've recently had a lot of problems with my JRE's in eclipse and I thought I was finally past them. Could this error be related to something like that?

Do I have to make any special declarations at the beginning of my code invoking the boolean method?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2008
Added on Oct 9 2008
10 comments
2,518 views