Question: Write a method that removes the duplicate elements from an array of list of integers using the folowwing header: public static void removeDuplicate(ArrayList list) Write

Write a method that removes the duplicate elements from an array of list of integers using the folowwing header:

public static void removeDuplicate(ArrayList list)

Write a test program that prompts the user to enter 10 integers to a list and displays the distinct integers in their input order and seperated by exactly one space. Here is a sample run.

Enter 10 integers: 34 5 3 5 6 4 33 2 2 4

The distinct integers are 34 5 3 6 4 33 2

I do not want to copy this code word for word. I just want a reference or hints to how to structure this. I have no idea how to structure/start this program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!