GfG QA is closing soon... Please refer PRACTICE or GfG now on wards !!

How to get the difference between 2 array lists and return unique values

I have 2 array that I want to return the unique value after a compare.  How is this done? 

Should return [13] but it is returning [10 1 13]

String[] s1 = {10, 1};
String[] s2 = {10, 1, 13};

ArrayList<String> a = new ArrayList<String>(Arrays.asList(s1));
ArrayList<String> b = new ArrayList<String>(Arrays.asList(s2));

b.removeAll(a);
asked Mar 9, 2017 by deongee
...