title: How to get FolderName and FileName from the DirectoryPath
body: <p>I have DirectoryPath:<br />
  <code>data/data/in.com.jotSmart/app_custom/folderName/FileName</code><br />
  which is stored as a String in <code>ArrayList</code></p>
  <p>Like</p>
  <pre><code>ArrayList&lt;String&gt; a;
  a.add(&quot;data/data/in.com.jotSmart/app_custom/page01/Note01.png&quot;);
  </code></pre>
  <p>Now from this path I want to get <code>page01</code> as a separate string and <code>Note01</code> as a separate string and stored it into two string variables. I tried a lot, but I am not able to get the result. If anyone knows help me to solve this out.</p>