title: How to use the find command in Java
body: <p>Wanted to know if there is a find functionality in Java. 
  Like in Linux we use the below command to find a file : </p>
  
  <pre><code>find / -iname &lt;filename&gt; or find . -iname &lt;filename&gt; 
  </code></pre>
  
  <p>Is there a similar way to find a file in Java? I have a directory structure and need to find certain files in some sub directories as well as sub-sub directories. </p>
  
  <pre><code>Eg: I have a package abc/test/java 
  This contains futher directories say 
  abc/test/java/1/3 , abc/test/java/imp/1, abc/test/java/tester/pro etc. 
  </code></pre>
  
  <p>So basically the abc/test/java package is common and it has a lot of directories inside it which contain a lot .java files.
  I need a way to obtain the absolute path of all these .java files.</p>