Best way to iterate through a directory in java?
<p>hi all I'm new to java and searching for code relating to getting a list of all files in a directory (including files in subfolders) yields tons of different approaches. </p>

<p>What is the standard way  nowadays to accomplish directory iteration with java?</p>

<p>I basically want to pass in a parent dir and be able to work with all the files inside that parent even when nested in subfolders.</p>

<p>thanks!</p>
