kartika
0
Q:

how to get filename without extension in java

FilenameUtils.removeExtension(fileNameWithExt);
0
String fname = file.getName();
int pos = fname.lastIndexOf(".");
if (pos > 0) {
    fname = fname.substring(0, pos);
}
0

New to Communities?

Join the community