code: public static String getExtension(String strFile, String defaultValue) {
  	int pos = strFile.lastIndexOf('.');
  	if (pos == -1) return defaultValue;
  	return strFile.substring(pos + 1);
      }
docs: get the Extension of a file
  
  @param strFile
  @return extension of file