i've been stuck for hours now and can't find a solution. I want to compare two ArrayLists where i want to put each unique element from one of the list into another arrayList.
For example, if my one arrayList contain {0,1,2,3} and i want to compare it to {{1},{2},{3}} i want to recieve {2} in my 'unqiue' arraylist please help me
AFTER EDIT
I will be more specific. ArrayList1={0,1,2,3,4} and ArrayList2={{0, 1} {0,1,2}} So what i want is to have the only unique from ArrayList1 in a single ArrayList. in this example i want ArrayList3= {3,4}