Question: Write a program that tests the equality of two arrays. Two arrays are equal if all corresponding elements are equal. Your program should first
Write a program that tests the equality of two arrays. Two arrays are equal if all corresponding elements are equal. Your program should first fill two arrays, check whether the two arrays are equal or not and then print an appropriate message. NOTE: All arrays are of type integer and size 5. [Sample Run 1] Fill array 1 with 5 numbers: 5 2 319 Fill array 2 with 5 numbers: 5 2 3 49 Arrays are not equal [Sample Run 2] Fill array 1 with 5 numbers: 5 2 3 19 Fill array 2 with 5 numbers: 5 2 3 19 Arrays are equal
Step by Step Solution
3.43 Rating (150 Votes )
There are 3 Steps involved in it
import javautilScanner public class ArrayEqualityTest public static void ma... View full answer
Get step-by-step solutions from verified subject matter experts
