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.2.1.17 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.16 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.15 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.14 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.13 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.12 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.11 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.10 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.9 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.8 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.7 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.6 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.5 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.4 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.3 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.2 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.1 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.1.0 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.0.6 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.2.0.5 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java