Packages / Custom Imports
I haven't really had big enough projects to want to use this, and infact had to do more research before starting this tutorial.

As mentioned before packages are folders within a project
- Any class within a package needs: package 'packagename'; added to the top
- You cannot access items directly from one package to another
- Use import.packagename.*, to access items from one package to another
Using packages can make it harder to tell where the program starts, I recomend creating a package with the same name as your project and a class within that package called Main with ofcourse the main function.
Copyright (c) 2008, Martin Sykes.
Learning Center is a branch of Martrinex Systems, Martrinex.net
Do not copy any materials from this site without permission from the auther.
Add Comment
Comments