Please KeepItDown. That doesn't include all uppercase letters but also larger fonts. It's completely unnecessary.
With java.io.File you can first use the static listRoots() methods to list all of the root files. You must then use a recursive method that for those. In pseudo code:
With java.nio.file.Path it's a bit different, because you can use FileVisitor: