Write a function to remove duplicate elements from an array and return th
array with unique integer values only
Answers
Answered by
1
Answer:
Java Program to remove duplicate element in an Array
public class RemoveDuplicateInArrayExample{
public static int removeDuplicateElements(int arr[], int n){
if (n==0 || n==1){
return n;
}
int[] temp = new int[n];
int j = 0;
for (int i=0; i<n-1; i++){
Similar questions