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

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

P: 66
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!?
Oct 11 '07 #1
Share this Question
Share on Google+
4 Replies

P: 66
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.
Oct 11 '07 #2

Ganon11
Expert 2.5K+
P: 3,652
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.
Oct 11 '07 #3

P: 66
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
Oct 12 '07 #4

P: 1
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 (driverClassName);
iam getting the error as <identifer>excepted and below this sourrond with
what does this mean?
how can i solve this problem
plz help me
Jul 22 '11 #5

Post your reply

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