title: Split string with dot as delimiter
body: <p>I am wondering if I am going about splitting a string on a <code>.</code> the right way? My code is: </p>
  
  <pre><code>String[] fn = filename.split(".");
  return fn[0];
  </code></pre>
  
  <p>I only need the first part of the string, that's why I return the first item. I ask because I noticed in the API that <code>.</code> means any character, so now I'm stuck.</p>