The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

package imports

Posted by Jody Brown on November 24, 2000 at 9:58 AM

Jiminh,

The .* "wildcard" import statement isn't capable of finding the contents of sub-packages, only the classes that exist within the package at that level. If you had the following classes available:-

this.example.Class1
this.example.Class2
this.example.continued.Class3

"import this.example.*" would only import Class1 and Class2. Class3 in this.example.continued would be ignored.

Hope this helps.

Regards,

Jody




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us