title: Java - Get the last directory in hierarchy in a path
body: <p>I have the path: <code>"C:\DirA\DirB\DirC"</code>.<br>
  I'm looking for a way to get <code>DirC</code> (as string) which is the last one in this path hierarchy.<br>
  I don't want to use String manipulations like <code>lastIndexOf</code> or a like to avoid platform related path separators (The path separator is <code>\</code> for windows and <code>/</code> for linux) so it better be some <code>Path</code> functionality..</p>