title: Get file name from URL
body: <p>In Java, given a <code>java.net.URL</code> or a <code>String</code> in the form of <code>http://www.example.com/some/path/to/a/file.xml</code> , what is the easiest way to get the file name, minus the extension? So, in this example, I'm looking for something that returns <code>"file"</code>. </p>
  
  <p>I can think of several ways to do this, but I'm looking for something that's easy to read and short.</p>