substring

  1. S

    In Java, subString complains of having a negative index... yet neither the start nor

    end are negative. help!? this.proteinSequence = sDNA.substring(startAt, endAt); <---- The line of code causing the Exception. proteinSequence is a String. sDNA is a String of length > 16 000 characters. In this example, startAt = 3306 and endAt = 3192. When run I get the following bizarre...
Back
Top