Question: Write a method that returns true if list1 and list 2 are identical (meaning that they have the same contents), using the following: public static

Write a method that returns true if list1 and list 2 are identical (meaning that they have the same contents), using the following: public static Boolean isEqual(int[ ] list1, int[ ] list2) Hint: you can use the sort method. Write a main method that prompts the user to enter two lists of integers and displays whether the two are identical. Here are sample runs: Enter the first list size: 4 Enter the first list contents: 3285 Enter the second list size: 4 Enter the second list contents: 2385 The two lists' contents are the same Enter the first list size: 4 Enter the first list contents: 3285 Enter the second list size: 4 Enter the second list contents: 3512 The two lists' contents are not the same
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
