ej union etc.

https://iessanvicente.com/aulavirtual/mod/assignment/view.php?id=348

Create a program that given 2 sorted lists of integer numbers (A and B, using ArrayList) will display:

- The numbers in the 2 lists without duplicated numbers (C = A U B)
- The numbers, including duplicated numbers (D = A + B)
- The numbers that are in both lists (E = A intersection B)
- The numbers of A that don't exist in B (F = A - B)
- The numbers in A and in B that don't exist in both lists (G = (A U B) - (A intersection B)

As test data, you might use
A = 3 5 7 8 9
B = 2 7 9
so the results would be
C = 2 3 5 7 8 9
D = 2 3 5 7 7 8 9 9
E = 7 9
F = 3 5 8
G = 2 3 5 8