Java array replacements

Hello I have 3 integer arrays. array #1 has information and contains duplicates. array #2 contains values that might be in array 1. array #3 has replacement values. array #2 and array #3 are the same …