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.