-
Importing Packages
Hello.
A few weeks ago, I started a side project, and it pretty quickly grew out of hand. Long story short, I needed to separate a few of my files into separate packages for neater organization. I have one package that most of my files are in (which my NetBeans IDE refers to as <default package>), and I have a side package called CharClassTypes.
Each class in CharClassTypes extends a class called PlayerCharacter inside the default package...or at least that was my plan. I'm having trouble finding the right line to import the default package in the subclasses.
I know how to import normal API classes, because they mostly are of the form java.something.somethingElse. But what form should I use in this case?
-
The default package doesn't have a name so it's hard to import from.
Move everything from the default package into a newly created package (with a name). NB should let you do this by dragging and dropping.
-
Thanks for the suggestion. Worked out beautifully.
-