title: Getting the number of files in a folder in java
body: <p>I'm making a basic file browser and want to know how to get the number of files in any given directory (necessary for the <code>for</code> loops that add the files to the tree and table)</p>