Java Create a New Directory using Files.createDirectory() In this Java NIO tutorial we learn how to use the Files.createDirectory() method in Java application to create a new directory.