aspose file tools*
The moose likes Beginning Java and the fly likes Missing } Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Missing }" Watch "Missing }" New topic
Author

Missing }

J perez
Greenhorn

Joined: Oct 16, 2011
Posts: 2
hi all Im new to java and eclipse but this is something I have wanted to do so i started looking around and some how I found this forum with the error I was having only mine is a little different, can you please help I want to continue learning !!!

screenshot attached


[Thumbnail for java error.PNG]

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38357
    
  23
Welcome to the Ranch

Please don’t add a new question to an old thread; I have created a new thread. Please copy-and-paste code; screenshots are much more difficult to read.
Kristjan Toots
Ranch Hand

Joined: Jun 03, 2011
Posts: 59

The error is quite straightforward: Insert another "}" to complete class body.
You have to have brackets in pairs - if there is "{" you'll need "}" as-well to end the block.

The bracket you have in the end will pair up with the main "{". Insert another one to pair up with the class "{".


Please correct my english.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38357
    
  23
I think the original poster worked it out, but I didn’t copy the whole thread over correctly. Sorry.

I recommend learning to write code differently from a letter. I am surprised there wasn’t a warning before attempted compiling, and that the IDE didn’t insert the {} correctly paired automatically. I would also recommend you don’t use an IDE if you are still at the beginner’s stage.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Missing }