Question: Can someone help me with this java question? We have the following declarations: You have to add the code for the method trouve() /find() in
Can someone help me with this java question?
We have the following declarations:


You have to add the code for the method trouve() /find() in other word. This method looks for the ARN to find 3 consecutive Nucleotides. It (the method) looks for the chain of nucleotides AUG or GUG. The method returns the indice (index) of the position of the first nucleotide of the first occurrence in the chain in the ARN. If the chain isnt present in the ARN, so the method returns -1.
For example, the following code:

Shows 1 because the ARN has A is the place 1, U in place 2 and G at place 3. So AUG from place 1.
How can I write the code?
public enum Nucleotide { A, C, G, U, } public class ARN extends ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
