title: How to get just the parent directory name of a specific file
body: <p>How to get <code>ddd</code> from the path name where the test.java resides.</p>
  
  <pre><code>File file = new File("C:/aaa/bbb/ccc/ddd/test.java");
  </code></pre>