int i = path.indexOf ('.');
int i = path.lastIndexOf ('.');
    public static String getFileNameNoExtension (String path)    {        int i = path.indexOf ('.');        if (i != -1)            path = path.substring (0, i);        return path;    }