title: Java getting absolute path from directory count list
body: <p>Expected:
  find the number files in the folder, and collect the absolute path for each file in the directory.</p>
  
  <pre><code>File certificatePath = new File("resources/NPL");
   String absolutePath = certificatePath.getAbsolutePath();
   File directory = new File(absolutePath);
   int fileCount=directory.list().length;
  </code></pre>
  
  <p>From the above code getting the no of files in folder (resources/NPL), now i'm struggle to get the absolute path for the files.</p>