Find the elements that only appear in one of the arrays


Problem

Add a method named problem4 that accepts two arrays of integer values. Find the elements that only appear in one of the arrays. You may assume each array contains unique elements. Return the result.

Test case: array1 is {1, 4, 3, 2, 5}, array2 is {7, 5, 4, 6}, return {1, 3, 2, 7, 6}.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Find the elements that only appear in one of the arrays
Reference No:- TGS03284826

Expected delivery within 24 Hours