1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Input/Output and Streams in Java

Connected

Bài tập

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.

Hướng dẫn

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.