Skip to content

Instantly share code, notes, and snippets.

@rmorenobello
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save rmorenobello/a94c105f88cc6a8fd17e to your computer and use it in GitHub Desktop.

Select an option

Save rmorenobello/a94c105f88cc6a8fd17e to your computer and use it in GitHub Desktop.
import org.apache.commons.io.FilenameUtils;
String fileNameWithOutExt = FilenameUtils.getBaseName(fileNameWithExt);
// or
String fileNameWithOutExt = FilenameUtils.removeExtension(fileNameWithExt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment