Sha256: c2b72478ebd4d6f32d82e50ca05fd9b110c199fa7de88c071308fb195b224a1d

Contents?: true

Size: 622 Bytes

Versions: 68

Compression:

Stored size: 622 Bytes

Contents

public class RnaTranscription {

    public String transcribe(String dnaStrand) {
        StringBuilder sb = new StringBuilder();
        for (char c : dnaStrand.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

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.1.0.40 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.39 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.38 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.37 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.36 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.34 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.33 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.32 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.31 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.30 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.29 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.28 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.27 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.26 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.25 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.24 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.23 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.22 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.21 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.1.0.20 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java