![]() There are some other naming conventions for packages in Java that you should follow. Write package names in lowercase letters. ![]() In the Project tool window ( Alt+1), right-click the node within the Sources Root or Test Sources Root in which you want to create a new package, and click New | Package.Īlternatively, select the node, press Alt+Insert, and click Package. ![]() Packages in Java are used for grouping classes that belong to the same category or provide similar functionality, for structuring and organizing large applications with hundreds of classes. If you want to create several nested directories, specify their names separated with slashes, for example: folder/new-folder. In the Project tool window ( Alt+1), right-click the node in which you want to create a new directory and select New | Directory.Īlternatively, select the node, press Alt+Insert, and click Directory. Once you have created a project, you can start adding new items: create directories and packages, add new classes, import resources, and extend your project by adding more modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |