my dog learned polymorphism
The moose likes Java in General and the fly likes Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Methods" Watch "Methods" New topic


Aafreen Moinuddin

Joined: Feb 16, 2006
Posts: 20
Can we write a method inside method?

Mattias Arthursson
Ranch Hand

Joined: Jul 26, 2004
Posts: 90

Admit nothing. Blame everyone. Be bitter.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
well, you can create an anonymous inner class inside a method body, and this class probably will have methods...
I agree. Here's the link:
subject: Methods
It's not a secret anymore!