The following sections describe the solutions to the preceding problems. Remember that there usually isn't a single correct way to solve a particular problem. Also, remember that the explanations that are shown here only include the most interesting and important details that are needed to solve the problems. You can download the example solutions to view additional details and experiment with the programs from https://github.com/PacktPublishing/Java-Coding-Problems.
Solutions
129. Creating file paths
Starting with JDK 7, we can create a file path via the NIO.2 API. More precisely, a file path can be easily defined via the Path and Paths APIs.
The Path class is a programmatic representation of a path in a filesystem....