Java constants- round 2
Ok, well it seems that implementing a Contant Interface( which I discussed previously ) is considered a bad idea, so in JRE 1.5 they introduced a static import language feature so you can say:
Wow. I'm surprised it took 'em so long
Linkage: http://java.sun.com/j2se/1.5.0/docs/guide/language/static-import.html
import static java.lang.Math.PI;
Wow. I'm surprised it took 'em so long
Linkage: http://java.sun.com/j2se/1.5.0/docs/guide/language/static-import.html
0 Comments:
Post a Comment
<< Home