Please write this Java program as simple as possible and with comments throughou
ID: 3730199 • Letter: P
Question
Please write this Java program as simple as possible and with comments throughout explaining what is happening. Thank you!Exercise 3: Design and implement a Java program for programming exercise 7.15, page 279 (name it EliminateDuplicates), as specified in the problem statement. Follow the instructions in th problem statement to design your method (the method eliminateDuplicates () must be designed to return an armay of the minimum size necessary to hold the unique values, not modify the input and handle amrays with any number of elements, not just the ten the textbook exercise requires to be read by the test program). Design the main method of your program to handle all input and output and to allow the user to re-run the program with different sets of inputs. Follow the input an output model in the textbook and use the given sample run to test your code. Document your code and organize the output using appropriate formatting techniques