question: public File makeAcceptable ( File pathname ) { if ( accept ( pathname ) ) { return pathname ; } else { return new File ( pathname . getPath ( ) + '.' + defaultExtension ) ; } }
target:  Appends the extension to the filename, in case it is missing.