Question: The arrays list1 and list2 are strictly identical if their corresponding elements are equal. Write a method that returns true if list1 and list2 are
The arrays list1 and list2 are strictly identical if their corresponding elements are equal. Write a method that returns true if list1 and list2 are strictly identical, using the following header:public static boolean?equals(int[] list1,?int[] list2)Write a test program that prompts the user to enter two lists of integers and displays whether the two are strictly identical. Here are the sample runs. Note that the first number in the input indicates the number of the elements in the list. This number is not part of the list.
Enter list1: 5 2 5 6 1 6 -Enter -Enter Enter list2: 5 2 5 6 1 6 Two lists are strictly identical -Enter Enter list1: 5 2 5 6 6 1 Enter list2: 5 2 5 6 1 6 Two lists are not strictly identical JEnter
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
Output Enter the number of elements 3 Enter elements in first array 11 12 13 Ent... View full answer
Get step-by-step solutions from verified subject matter experts
