• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

<identifier> expected error  RSS feed

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im getting an error that says <identifier> expected. not sure exactly what this means. ill comment the line where it occurs. its in the Student class inside the for loop in the readGradesSetAverage() method. 





 
author & internet detective
Marshal
Posts: 38664
677
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that's the line of the error? You are missing something (the type), but it is here:

 
Mike Mo
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Are you sure that's the line of the error? You are missing something (the type), but it is here:



yeah thats another error that im getting. or maybe its the problem in general. im not really sure what to pass into that and fout is the last thing i tried. i meant to comment that out before i posted question
 
Sheriff
Posts: 23714
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I don't get it. You haven't declared the type of the parameter "fout" (see all your other methods where you do declare the type of the parameters). On the other hand you don't use that parameter inside the method at all, so why do you have it at all?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!