By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,068 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,068 IT Pros & Developers. It's quick & easy.

Problem in calculator program using"netbeans"( java)

P: 1
Why am I getting errors when I try to run the calculator progam using Netbeans5.5?
error :-" class,interface or enum expected"

Also, explain what's"enum"?
Jul 17 '08 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
Part of the compiler's job is to verify that your program is syntactically correct. If it's not (as in your case) then it reports those error messages to you.
Best way to know what an enum is is by reading about it from Sun's tutorial
Jul 17 '08 #2

Expert 10K+
P: 11,448
Why am I getting errors when I try to run the calculator progam using Netbeans5.5?
error :-" class,interface or enum expected"
Check whether or not your curly brackets match up; I suspect you have at least
one closing curly bracket too many.

kind regards,

Jos
Jul 17 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.