question: public static String stripFileExtension ( String name ) { int pos = name . lastIndexOf ( '.' ) ; if ( pos > 0 & pos < name . length ( ) - 1 ) return name . substring ( 0 , pos ) ; return name ; }
target:  Remove the extension from the file name. This function does not check if the file exists.