Equating Two Arrays
From CompSciWiki
Back to the Program-A-Day homepage
ProblemThis problem envolves you seeing if two hard coded arrays are equal. You should use two int arrays to equate. Even though your arrays are hard coded into your program, you should not assume to know the length of the arrays. In other words use:array.lengthRemember that your arrays start indexing at 0 and that you should watch out for loops indexing arrays out of bounds. These are the most common pitfalls with a problem like this. |
...By Students | |
---|---|---|
SolutionThe solution... | ||
Code |