The Artima Developer Community
Sponsored Link

Java Buzz Forum
My thoughts on the new import syntax...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Joe Shelby

Posts: 101
Nickname: acroyear
Registered: Jun, 2003

Joe Shelby is a senior software developer at ISX Corporation.
My thoughts on the new import syntax... Posted: Jun 26, 2003 8:02 AM
Reply to this message Reply

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.
Latest Java Buzz Posts
Latest Java Buzz Posts by Joe Shelby
Latest Posts From Joe's Java Jottings

Advertisement
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

Read: My thoughts on the new import syntax...

Topic: New JDK1.5 early-access compiler, and "variance" in Generics Previous Topic   Next Topic Topic: Code idiom: using logical ^ to change your mind

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use