Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    1,935

    [SOLVED] Re: Compress DNA sequence using recursion

    This line of output looks like the desired results:
    The String entered is: BA20
  2. Replies
    10
    Views
    1,935

    [SOLVED] Re: Compress DNA sequence using recursion

    That looks like source code, not the program's output.
    How can the code be tested? It needs a class with a main() method.
  3. Replies
    10
    Views
    1,935

    [SOLVED] Re: Compress DNA sequence using recursion

    Can you post the program's output that shows what you are talking about?
    How can the code be tested? It doesn't have a class and a main() method.
  4. Replies
    10
    Views
    1,935

    [SOLVED] Re: Compress DNA sequence using recursion

    Have you tried debugging the code to see what it is doing? Add some println() statements that print out the values of variables as their values are changed so you can see what the code is doing....
  5. Replies
    10
    Views
    1,935

    [SOLVED] Re: Compress DNA sequence using recursion

    At line 41 the code uses an index (-1) that is out of bounds. Valid indexes for arrays range in value from 0 to the array length-1.
    Look at line 41, find the index and then backtrack in the code to...
Results 1 to 5 of 5