<Identifier> expected ---> What does this mean???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CodeTilYaDrop
    New Member
    • Aug 2007
    • 66

    <Identifier> expected ---> What does this mean???

    I am still pretty new to programming, and I sometimes can not figure something out. I am getting an error with this line in my program:

    Public void count_syllables (int count_syllables )

    I get the error <identifier expected>. What does this mean. I can not seem to make it go away!?
  • CodeTilYaDrop
    New Member
    • Aug 2007
    • 66

    #2
    If you can't tell me how to fix it, could you please let me know what the <identifier> error means in layman's terms. The definition I found does not seem to shed any light on it for me.

    Comment

    • Ganon11
      Recognized Expert Specialist
      • Oct 2006
      • 3651

      #3
      First, the keyword Public does not exist in Java. You want the keyword public (note the case difference).

      If this doesn't fix your error, check your curly braces before this line - it is likely you are missing a } for one of your {'s.

      Comment

      • CodeTilYaDrop
        New Member
        • Aug 2007
        • 66

        #4
        Thanks Ganon11! This solved my issue with that line! I noticed the public the next time I looked at it, and it still gave me the error! It was the braces that messed me up! The braces get me every once in a while still!! Problem Solved

        Comment

        • purna
          New Member
          • Jul 2011
          • 1

          #5
          Iam still new to programming, and I sometimes can not figure something out. I am getting an error with this line in my program:
          class.forName (driverClassNam e);
          iam getting the error as <identifer>exce pted and below this sourrond with
          what does this mean?
          how can i solve this problem
          plz help me

          Comment

          Working...