Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes anonymous inner class and interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "anonymous inner class and interface" Watch "anonymous inner class and interface" New topic
Author

anonymous inner class and interface

Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

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:


Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Sunny Jain:

You're trying to define a method (meth2) inside the body of another method (main).


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

Ahh..I am such a dumb..I got it..thanks a ton..!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anonymous inner class and interface
 
Similar Threads
use of casting
Synchronization related query...
plz tell what is wrong in it
doubt from Khalid Mughal pgno:257
Test your knowledge