Android Utililty Methods File Extension Name Remove

List of utility methods to do File Extension Name Remove

Description

The list of methods to do File Extension Name Remove are organized into topic(s).

Method

StringstripExtension(String filename)
Strip file extensions from the provided filename.
if (Util.isBlank(filename)) {
    return null;
if (filename.lastIndexOf('.') == -1) {
    return filename;
return filename.substring(0, filename.lastIndexOf('.'));