Difference between revisions of "Equating Two Arrays"

From CompSciWiki
Jump to: navigation, search
Line 8: Line 8:
 
|Solution=The solution...
 
|Solution=The solution...
 
|SolutionCode=
 
|SolutionCode=
 +
<pre>
 
public class ArrayEquate
 
public class ArrayEquate
 
{
 
{
Line 33: Line 34:
 
   }
 
   }
 
}
 
}
 +
</pre>
 
}}
 
}}

Revision as of 09:33, 8 April 2010

Back to the Program-A-Day homepage

Problem

This 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.length
 

...By Students

Solution

The solution...

Code

Solution Code

Back to the Program-A-Day homepage