buf.append(elementString(seq.getSequence()[i], level, varPrefix));
buf.append(elementString(seq.getSequence()[i], level + 1, varPrefix));
    public String compressedSequence(CompressedSequence seq, int level, String varPrefix) {        StringBuffer buf = new StringBuffer();        //generate a for loop if the current repetition count is high enough        if (seq.getReps() > GENERATE_FOR_LOOP) {            String var = varPrefix + level;            buf.append(indent(level));            buf.append("for (" + var + " = 0; " + var + " < " + seq.getReps() +                        "; " + var + "++) {\n");            for (int i = 0; i < seq.getSequence().length; i++) {                buf.append(elementString(seq.getSequence()[i], level, varPrefix));            }            buf.append("}\n");        }        else {            //the rep count is low, so just unroll the loop            for (int reps = 0; reps < seq.getReps(); reps++) {                for (int ele = 0; ele < seq.getSequence().length; ele++) {                    buf.append(elementString(seq.getSequence()[ele], level, varPrefix));                }            }        }        return buf.toString();    }