Ok, if declared as final and static, variables behave just like constants and
can be used in constructors.
I don't know how it happened the first time that it didn't work, but after
another test it's confirmed, they work.
With an afterthough, it would have been a big mistake in the java language or
the java compiler if this behaviour was not implemented. I guess those who
wrote Java couldn't do such a mistake :)
Many thanks to everybody for the detailed answers, even if this was an OT
subject.
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]