The exception you are getting is a StringIndexOutOfBoundsException which can occur when no such character is in bounds of a string. The problem you had is that with dna.indexOf(startIndex), you are...
Type: Posts; User: luroma0511
The exception you are getting is a StringIndexOutOfBoundsException which can occur when no such character is in bounds of a string. The problem you had is that with dna.indexOf(startIndex), you are...
When the method called itself in the code, it never returns its value at the end of its method execution, and the value for the newCount is lost.
add the return statement to the matchCheck method....
When you're setting up the constructor, the constructor expects not only how many rows and columns you have, but also an already made two-dimensional array, or a table for example. Since we want to...