In Java, duplicate elimination is an important operation for some situations. How you would take in any number of values of any type, and then remove the duplicates while at the same time storing the data in the most efficient manner you can so that you can print out the data as an ordered list? Write a method to do this.