Answers for "java get name of file without extension"

0

java get filename without extension

String fname = file.getName();
int pos = fname.lastIndexOf(".");
if (pos > 0) {
    fname = fname.substring(0, pos);
}
Posted by: Guest on September-29-2020

Code answers related to "java get name of file without extension"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language