Retrieves the name and extension of the specified path.
public static String getName( String path )
path
The path of a file or directory.
Returns the name and extension of the specified path.
The resulting string contains the characters of the path parameter that follow the last backslash (\) or colon (:) in the path parameter. The resulting string is the entire path if the path parameter does not contain either a backslash or a colon. The resulting string is null if the path parameter is null.
See Also getDirectory, getExtension, getRoot