Hi, I seem to be hacing a problem with this basic line of coding, I have checked my curly brackets and all seem to match up, but the <identifier> expected error is still appearing, help would be appreciated.
Firstly what I did was not have the 'class.' statement on the code however when compilin bluej asked me to use it, now this identifier error comes up. It is a simple accessor method and in the same program i have used 2 more with no problems.
Here is the full program code:
Thanks for all the help, very much appreciated from a newbie!
Hi Saavan, Welcome to JavaRanch
Few things are incorrect in your code. First you can't use dot(.) in method names. And your "pages" instance variable is declared as String but you are expecting an int in the "getPages()" method.