Declare and implement a function called arraySameSize
that receives two two-dimensional arrays of
int
values as parameters and returns true if they have the same size in every dimension.
If both passed arrays are null
you should return true
, but if only one is null
return false
.
You're challenge is to write tests for this problem described above.
Stuck? You may find these lessons helpful: