Online Java Compiler By
JavaTpoint.com
import java.util.Arrays; public class RemoveDuplicateInArrayExample3{ 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
Output