Organization of Java Project files or folders

You can perform the following operations to your files and folders for organizing them in a preferred manner:

  • Create folder: This feature allows you to create a new folder.
  • Create file: This feature allows you to create a file in a folder.
  • Rename: This feature allows you to rename a file or folder.
  • Delete: This feature allows you to delete a file or folder.
  • Hide: This feature allows you to hide a file or folder from candidates.
  • Lock: This feature allows you to preserve the structure of a folder. Candidates cannot add, edit, or delete any files or folders. However, it does not lock the code that is available in any folders or files.

To enable these operations in your Java Project question, follow these steps:

  1. Log in to HackerEarth Assessments by using your admin credentials.
  2. Clickmceclip0.png.
  3. Click My Library.
  4. Click Java Project.
  5. Click the name of the question whose files or folders you want to organize. For example, the problem name is Shopping Cart.
  6. In the Project section, click Edit Project Code.
  7. Right-click beside the name of the file or folder on which you want to perform the operations. For example, you want to organize the com folder, therefore, you right-click it.

    mceclip1.png
  8. Select the operation that is required to organize the project code. The steps to perform the following operations are as follows:
    1. To create a folder, click Create folder. Enter the name of the new folder and press Enter. Your new folder is successfully created.
    2. To click a new file, click Create file. Enter the name of the new file and press Enter. Your new file is successfully created.
    3. To delete a file or folder, click Delete. Now, click Yes in the confirmation dialog box to successfully delete a file or folder.
    4. To rename a file or folder, click Rename. Provide the new name of the file or folder and press Enter. The name of the file or folder is successfully updated.
    5. To hide a file or folder in the project code, click Hide. The hidden folder cannot be viewed by candidates. The hidden file or folder is displayed as:
      mceclip4.png
    6. To lock or unlock a file or folder, click Lock or Unlock respectively. The locked file or folder is displayed as follows:
      mceclip5.png
  9. Click Save Project.

You have successfully organized your files or folders in a preferred manner.