Question: Consider a program which can evaluate strings of DNA code. DNA code is a String containing only the letters C, T, G or A. Write

Consider a program which can evaluate strings of DNA code. DNA code is a String containing only the letters “C”, “T”, “G” or “A”.

Write a public method, compareDna, that takes two DNA Strings as parameters and returns true if they are the same, false otherwise.

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!