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

Version Path
trackler-2.0.8.12 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.11 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.10 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.9 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.8 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.7 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.6 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.5 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.4 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.3 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.2 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.8.1 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.7.0 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.44 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.43 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.42 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.41 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.40 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.39 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java
trackler-2.0.6.38 tracks/java/exercises/rna-transcription/src/example/java/RnaTranscription.java