title: How to remove part of the string in java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/225337/how-do-i-split-a-string-with-any-whitespace-chars-as-delimiters">How do I split a string with any whitespace chars as delimiters?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to break up a string in java. I have a string "message.txt.cpabe".I want to remove the last portion and only want "message.txt". How do I do it? </p>