private String getFileName(String possiblyPathName) {
        possiblyPathName = possiblyPathName.substring(possiblyPathName.lastIndexOf('/')+1);
        possiblyPathName = possiblyPathName.substring(possiblyPathName.lastIndexOf('\\')+1);
        return possiblyPathName;
    }
private String getFileName ( String possiblyPathName ) { possiblyPathName = possiblyPathName . substring ( possiblyPathName . lastIndexOf ( '/' ) + 1 ) ; possiblyPathName = possiblyPathName . substring ( possiblyPathName . lastIndexOf ( '\\' ) + 1 ) ; return possiblyPathName ; }
Strip off the path portion if the given path contains it.