Sha256: 20dd87e71d32c8121ae7f60707a836236e04b7cac5551bcd74bcf5dece8a094f
Contents?: true
Size: 618 Bytes
Versions: 113
Compression:
Stored size: 618 Bytes
Contents
public class RnaTranscription { public static String ofDna(String strand) { StringBuilder sb = new StringBuilder(); for (char c : strand.toCharArray()) { switch (c) { case 'A': sb.append('U'); break; case 'G': sb.append('C'); break; case 'C': sb.append('G'); break; case 'T': sb.append('A'); break; } } return sb.toString(); } }
Version data entries
113 entries across 113 versions & 1 rubygems