Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Importing custom packages

807601May 14 2008 — edited May 14 2008
OK, I'm semi-new to packaging because the book I used to learn Java didn't cover packages. I have a package called com.arr.utils. Why is it that it'll let me make imports like

import com.arr.utils.Item;

but not

import com.arr.utils.*;
?

When I do the last and try to use a class in the package, I get a compiler error. Any idea why?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2008
Added on May 14 2008
8 comments
91 views