int dot = name.lastIndexOf('.'); if (dot >= 0) name = name.substring(0, dot);
    public String toString() {        String name = fileName;        int lastSep = name.lastIndexOf(File.separatorChar);        if (lastSep >= 0)            name = name.substring(lastSep + 1);        return name;    }