private boolean colCheck(Table t, Table t2) {
        for (int i = 0; i < t.columns(); i++) {
            for (int j = 0; j < t2.columns(); j++) {
                if (t.getTitle(i).equals(t2.getTitle(j))) {
                    tmp = new int[match.length + 1];
                    tmp[tmp.length - 1] = i;
                    for (int x = 0; x < tmp.length - 1; x++) {
                        tmp[x] = match[x];
                    }
                    match = tmp;
                    tmp2 = new int[match2.length + 1];
                    tmp2[tmp.length - 1] = j;
                    for (int x = 0; x < tmp2.length - 1; x++) {
                        tmp2[x] = match2[x];
                    }
                    match2 = tmp2;
                }
            }
        }
        if (match.length > 0) {
            return true;
        }
        return false;
    }