Take a look at the following problems in order to test your Java I/O programming prowess. I strongly encourage you to give each problem a try before you turn to the solutions and download the example programs:
- Creating file paths: Write several examples of creating several kinds of file paths (for example, absolute paths, relative paths, and so on).
- Converting file paths: Write several examples of converting file paths (for example, converting a file path into a string, URI, file, and so on).
- Joining file paths: Write several examples of joining (combining) file paths. Define a fixed path and append other different paths to it (or replace a part of it with other paths).
- Constructing a path between two locations: Write several examples that construct a relative path between two given paths (from one path to another).
- Comparing file paths: Write several examples of comparing...