Problem in calculator program using"netbeans"( java)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chamila
    New Member
    • Jul 2008
    • 1

    #1

    Problem in calculator program using"netbeans"( java)

    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"?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    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

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by Chamila
      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

      Comment

      Working...