public static String getExtension ( String fileName ) { int pos = fileName . lastIndexOf ( ' ' ) ; if ( pos < 0 ) { return "" ; } return fileName . substring ( pos + 1 ) ; }
Gets the extension part of the specified file name .