Write a program to remove duplicate elements from array list........
Printable View
Write a program to remove duplicate elements from array list........
Do you have any specific questions about your assignment?
Please post your code and any questions about problems you are having.
i have array
int array[] = {1,2,1,3,4,5,2,3,4,5};
i want to remove duplicates from this array by usin simple java code without using any math rule like HASH. etc
output int this form...
{1,2,3,4,5}
Ok. What ideas do you have about how to remove the duplicates? You'll need to use some loops to scan through the array to look at each element.
At some time you'll need to create a new array that is the size of the unique elements and copy the unique elements to it.