This post originated from an RSS feed registered with Java Buzz
by Joe Shelby.
Original Post: My thoughts on the new import syntax...
Feed Title: Joe's Java Jottings
Feed URL: http://www.blog-city.com/bc/
Feed Description: Notes, observations, and occasional other stuff on Java, with concentrations on Swing, XML, and the Semantic (Object) Web.
Put simply, you can now import a static method or inner class (i think) directly, instead of having to import the parent class and reference it through the parent class's namespace.
E.g., instead of
x = Math.sqrt(5);
you can do
import java.lang.Math.sqrt;
...
x = sqrt(5);
personally, I think its rediculous too, just to save a few bits of typing (when this blog entry of mine shows that there's plenty of other change