Originally posted by liqiang yang:
Thanks Frank, Can you explain a little bit, how it works?
If you place the statement inside braces within the class body, the block of code will execute when the class is initialized. This will allow your code to compile, but you won't see any output until an instance of the method local class is created. You could also place the statement inside a method, as I suggested above.
[ March 18, 2008: Message edited by: marc weber ]