DNA Sequence Code in Java