Given a DNA strand, return its RNA complement (per RNA transcription).
Both DNA and RNA strands are a sequence of nucleotides.
The four nucleotides found in DNA are adenine (A), cytosine (C), guanine (G) and thymine (T).
The four nucleotides found in RNA are adenine (A), cytosine (C), guanine (G) and uracil (U).
Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement:
G
->C
C
->G
T
->A
A
->U
Go through the setup instructions for Java to install the necessary dependencies:
https://exercism.io/tracks/java/installation
You can run all the tests for an exercise by entering the following in your terminal:
$ gradle test
Use
gradlew.bat
if you're on Windows
In the test suites all tests but the first have been skipped.
Once you get a test passing, you can enable the next one by removing the
@Ignore("Remove to run test")
annotation.
Hyperphysics http://hyperphysics.phy-astr.gsu.edu/hbase/Organic/transcription.html
- You are expected to commit the source code in a public github repository shared with your trainers via slack.
- It is expected that all code is unit tested. If you don't know about unit tests, don't worry - here is a friendly blog by Martin Fowler talking about unit testing. And you can take a look at junit's official guide to efficiently write tests with same.
- We already have included
gradle
as the build tool. You can learn about it from official documentation. However be careful with the time you spend on it, as its quite exhaustive. It might be better to connect with people in your office who already worked with or know about gradle. Anyhow,./gradlew test
should get you started for running tests.