Hi Tetsuo,
You are not seeing something a little strange. You are seeing how
java works!
An assignment (to any variable) can be done in two ways:
1) Along with declaration:
2) Inside any code block (defined by braces {}):
Java will not let you perform assignments outside code blocks with the exception of number 1 above.
Regards,
Manfred.
[ March 14, 2002: Message edited by: Manfred Leonhardt ]