Maybe you all know about this feature of the just-beta Java 1.5, but I was
pleasantly surprised to learn on slide 46 of the presentation below
http://www.javasig.com/Archive/lectures/JavaSIG-Tiger.pdf
that the new static import feature allows you to write things like
import static Math;
x = cos(PI * theta);
instead of
x = Math.cos(Math.PI * theta);
(Note that not only does "PI" not need to be qualified by "Math.", neither does
the "cos" call.)
It'll be nice when the day comes that we can actually use this feature as the
default....
Al
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
|