void connect(int[] d) {
        int i = d[0];
        int j = d[1];
        int ii = find(i);
        int jj = find(j);
        if (ii == jj) {
            result = d;
        } else {
            a[ii] = jj;
        }
    }
Why Did you create this class? what does it do?
src/problems/medium/RedundantConnection.java