I need to create a program that not only put together 2 arrays, but to also avoid printing twice a number that is repeated on the on the arrays.
For example:
1,2,3,4,5 //Array 1
5,6,7,8,4 //Array 2
1,2,3,4,5,6,7,8 //Array 1 & 2 together
I heard that the Hashshet can help out to perform this, but I'm not really sure it works. I just began programming, so i don't know a lot of this stuff.
Hope someone can help me out.
Thanks