File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Compiler error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Compiler error "identifier expected"" Watch "Compiler error "identifier expected"" New topic
Author

Compiler error "identifier expected"

Brandon Valdez
Greenhorn

Joined: Dec 31, 2011
Posts: 1
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?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 26720
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
Sheriff

Joined: Oct 13, 2005
Posts: 26720
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.
 
 
subject: Compiler error "identifier expected"
 
Threads others viewed
another i/o question
when i run my virtual machine just keeps going, but no output.
adding all the numbers in a string
float
case statement, import file, output file
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture