• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

anonymous inner class and interface

 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why this program is giving error..!! i know there must be some silly stupid mistake..but i am not able to spot it..!!! Hope you guys will help me..!!!


Error:
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sunny Jain:

You're trying to define a method (meth2) inside the body of another method (main).
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh..I am such a dumb..I got it..thanks a ton..!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic