src/SequenceDNA.java
/**
     * Returns a string of the contents of a sequence interval (SeqInterval)
     * @param interval an instance of  SeqInterval
     * @return 
     */
Returns a string of the contents of a sequence interval (SeqInterval)
@param interval an instance of  SeqInterval
@return
Returns a string of the contents of a sequence interval ( SeqInterval ) @param interval an instance of SeqInterval @return
String intervalToString (SeqInterval interval) {
        StringBuilder sb = new StringBuilder();
        sb.append((String.format("%8d\t\t", 1)));
        for (int i = interval.start(); i <= interval.end(); i++) {
            int delta =  i - interval.start();
            if (delta % 10 == 0  && delta  != 0) {sb.append(' ');}
            if (delta % 100 == 0 && delta  != 0 ) {
                sb.append(String.format("\n%8d\t", i+1));
                sb.append("\t");
                }
            sb.append(sequence.charAt(i));
        }
        return sb.toString();
    }
String intervalToString ( SeqInterval interval ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( ( String . format ( "%8d\t\t" , 1 ) ) ) ; for ( int i = interval . start ( ) ; i <= interval . end ( ) ; i ++ ) { int delta = i - interval . start ( ) ; if ( delta % 10 == 0 && delta != 0 ) { sb . append ( ' ' ) ; } if ( delta % 100 == 0 && delta != 0 ) { sb . append ( String . format ( "\n%8d\t" , i + 1 ) ) ; sb . append ( "\t" ) ; } sb . append ( sequence . charAt ( i ) ) ; } return sb . toString ( ) ; }
Returns a string of the contents of a sequence interval (SeqInterval)
 @param interval an instance of  SeqInterval
 @return
Returns a string of the contents of a sequence interval ( SeqInterval ) @param interval an instance of SeqInterval @return
//sb.append('\n');