Retrieves the extension of the specified path.
public static String getExtension( String path )
path
The path of a file or directory.
Returns the extension of the specified path, or returns null if the specified path is null or does not include an extension.
The return value includes the period (.) in the extension, such as .exe or .java.
See Also changeExtension, getDirectory, getName, getRoot, hasExtension