This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Compiler error "identifier expected"  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello it seems like i am having a similar problem
the error i keep getting is the same but it is only on the inFile.close() and outfile.close(). any suggestions?
 
Marshal
Posts: 63391
205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please re-post your code with correct indentation; you cannot tell whether you have got the {} correctly paired because of incorrect indentation. Also, use 4 spaces, not tabs for indenting. Then you can see whether that code is actually in the location you thought it is in.

I think you have a new problem, so I have changed your question to a new thread in its own right.
 
Campbell Ritchie
Marshal
Posts: 63391
205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a lot more errors than you said. You should look at the first error and sort that out first.
Your class is inappropriately named.
You also have design problems, that you are not writing object-oriented code. Your main method is far too long; an ideal main method contains a single statement. Those two errors often go together.
There is a subtle error on line 147, too.
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!