Unit 8 Lesson 7 Level 3 Investigate and Modify

Hello,

When I follow the instructions for 8.7 Level three for adding the mystery2 method, all it returns is an empty ArrayList.

Below is my code in the runner file where I declare & initialize the ArrayLists and call the method.

Hi, this method is a bit tricky to see what it is doing– the for teachers only tab says that this method returns an ArrayList containing the elements that appear in the first two lists but not in the third.
With that in mind I created ArrayLists that had some values appear in two lists but not the other, and some values in all three lists.

Here is a link to my code if you wish to use it:

the output:

I hope this helps!

Best,

Lindsay

1 Like