Online Java Compiler By
JavaTpoint.com
public class RemoveDuplicateInArrayExample{ public static int removeDuplicateElement(int arr[], int n) { if (n==0 || n==1) return n; int[] temp = new int[n]; int j = 0; for (int i=0; i
Output