int    i   = path.indexOf ('.');
int    i   = path.lastIndexOf ('.');
    public static String getFileNameExtension (String path)    {        String ext = null;        int    i   = path.indexOf ('.');        if ((i != -1) && (i != (path.length() - 1)))            ext = path.substring (i + 1);        return ext;    }