title: How to split a file path to get the file name?
body: <p>I have this string in my Android Application:</p>
  
  <pre><code>/storage/emulated/0/temp.jpg
  </code></pre>
  
  <p>I need manipulate the string and to split the string for this output:</p>
  
  <pre><code>temp.jpg
  </code></pre>
  
  <p>I need always take the last element of the string.</p>
  
  <p>How to this output in java?</p>
  
  <p>I would greatly appreciate any help you can give me in working this problem.</p>