How do you list the files and directories in a directory using Java NIO?
You can use the `Files.list()` method from the `java.nio.file` package to list the contents of a directory.
Great! You've correctly identified `Files.list()` for listing directory contents.
Can you explain how you would filter out only directories from the list returned by `Files.list()`?