1. Learn
  2. /
  3. Courses
  4. /
  5. Input/Output and Streams in Java

Connected

Exercise

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.

Instructions

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.