Travesrse through a java two integer arrays array1 array 2

Travesrse through a java two integer arrays - array1 & array 2, outputting each elements value and whether or not they are equal.

Solution

Assuming the length of the known two arrays is identical:

for k=1:len(array1)

       disp(array1(k))

       disp(array2(k))

       if array1(k) == array2(k)

             disp(\"both values are identical)

      else

             disp(\"both values are not identical)

Travesrse through a java two integer arrays - array1 & array 2, outputting each elements value and whether or not they are equal.SolutionAssuming the length

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site