title: How to check if a directory is empty in Java
body: <p>I'd like to check if directory is empty in Java. But there is a possibility that there are many files in that directory so I'd like to do it without querying its file list, if possible.</p>