comparing array to matrix rows

let us say that we have a matrix, _matrix[50] [10], and an array, _array[10]can I compare the the array to rows of the matrix to the array like this:_matrix[23] == _arrayor is there another way
[221 byte] By [jdk2006a] at [2007-11-27 5:32:30]
# 1

Arrays are objects, so if you use ==, it will compare if those two arrays are the same object (which they almost certainly aren't) instead of comparing if they have the same contents (which is what you want to do). Instead, loop over the arrays, comparing corresponding elements. If they're all the same, the arrays are the same.

hunter9000a at 2007-7-12 14:58:39 > top of Java-index,Java Essentials,Java Programming...
# 2
Have a look at java.util.ArraysI think there is an equals() method to do the job.[]
S_i_m_ua at 2007-7-12 14:58:39 > top of Java-index,Java Essentials,Java Programming...