/* * Constructs a new DNAStrand from a given sequence (in the three to five ordering) */ public DNAStrand(String sequence) { if (sequence.length() > 0) { fiveEnd = threeEnd = new Nucleotide(sequence.charAt(0)); for (int i = 1; i < sequence.length(); i++) { Nucleotide now = new Nucleotide(sequence.charAt(i)); fiveEnd.append(now); fiveEnd = now; } } else { throw new IllegalArgumentException(); } }