public String toStringPlainReversed() { StringBuilder sb = new StringBuilder(); Nucleotide now = fiveEnd; while (now != null) { sb.append(now.toString()); now = now.getPrev(); } return sb.toString(); }
public String toStringReversed() { StringBuilder sb = new StringBuilder(); sb.append("(5) "); Nucleotide now = fiveEnd; while (true) { sb.append(now.toString()); now = now.getPrev(); if (now != null) { sb.append("="); } else { break; } } sb.append(" (3)"); return sb.toString(); }