src/com/esotericsoftware/scar/Scar.java
static public String fileExtension (String file) {
		if (file == null) throw new IllegalArgumentException("fileName cannot be null.");

		int commaIndex = file.indexOf('.');
		if (commaIndex == -1) return "";
		return file.substring(commaIndex + 1);
	}
/** Returns only the extension portion of the specified path, or an empty string if there is no extension. */
Returns only the extension portion of the specified path, or an empty string if there is no extension.
Returns only the extension portion of the specified path or an empty string if there is no extension .
static public String fileExtension (String file) {
		if (file == null) throw new IllegalArgumentException("fileName cannot be null.");
		int commaIndex = file.indexOf('.');
		if (commaIndex == -1) return "";
		return file.substring(commaIndex + 1);
	}
static public String fileExtension ( String file ) { if ( file == null ) throw new IllegalArgumentException ( "fileName cannot be null." ) ; int commaIndex = file . indexOf ( '.' ) ; if ( commaIndex == - 1 ) return "" ; return file . substring ( commaIndex + 1 ) ; }
Returns only the extension portion of the specified path, or an empty string if there is no extension.
Returns only the extension portion of the specified path or an empty string if there is no extension .