Professional Documents
Culture Documents
Within the “Source Packages” node you will see a <default package> node. This is the package-with-no-
name. In your file system, this is actually the folder called “src” within the folder for the project itself (the
Project Location that you noted above). For many projects, and certainly for the first few Lessons, it is
sufficient that your classes be created within the <default package>.
But you have a choice. You may create a package (or packages) if you wish. You do this by right-clicking
on the “Source Packages” node and selecting New => Java Package. A Java package name is usually
a sequence of lower-case names, structured by separating the names by dots. If you go to your Project
Location with your File browsing application, or select “Files” in NetBeans, and look inside the folder
called “src,” you will see the folders corresponding to the package structure. (More on this later under the
heading, Demonstration Programs).