Hello: Is it possible to have a local method on same lines of a method-local inner class, i.e. a method inside a method, if so how does it look? examples will be appreciated. Thanx, -S
Billybob Marshall
Ranch Hand
Joined: Jan 27, 2004
Posts: 202
posted
0
Nope
Vad Fogel
Ranch Hand
Joined: Aug 25, 2003
Posts: 504
posted
0
Methods can only be enclosed in classes or interfaces.
Stephen Galbraith
Ranch Hand
Joined: Oct 27, 2003
Posts: 90
posted
0
Not directly (as has been said already), but you can define anonymous inner classes, that can "look" similiar to what I think you're talking about....
SCJP 1.4, SCJD, SCWCD 1.4
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.