1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Input/Output and Streams in Java

Connected

अभ्यास

Organizing notes into a folder

To keep things tidy, your app should save notes in a dedicated folder. In this exercise, you’ll create a directory called "notes" and print its path. This lets you keep related files together and easy to find.

निर्देश

100 XP
  • Create a File object notesDir that points to notes.
  • Create the directory named notes in the system.
  • Retrieve the relative path of the directory named notes.