• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting error on my java code  RSS feed

 
Priyanka Dande
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i have written the java code using timer class to schedule the task , but i am getting error as } expected, i am not able to figure out the error, i have placed the { opening and closing curly bracket everywhere but still it is giving me error, Please help its urgent

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are declaring Reminder class twice which is wrong in the first place. Try using a proper IDE which will assist you for such errors.
 
Paul Clapham
Sheriff
Posts: 22832
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And furthermore, what you have is this:

A Reminder class which contains a couple of variable declarations and nothing else.

A Reminder constructor which isn't inside any class.

Another Reminder class which extends HttpServlet.
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at these suggestions about indentation. You have some inconsistent indentation, like this:-If you had indented that correctly, you would be able to see where all the blocks start and finish, and what is inside what, and whether your {} are correctly paired. Go back and get all the indentation right, and you will be able to see the errors just by squinting at the screen from the far side of the room
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!