public static int[] removeRepeat(int[] arr)
{
int[]temp=new int[arr.length];
int count=0;
boolean isFalg=true;
for(int i=0;i
for(int j=0;j
if(temp[j]==arr[i])
{
isFalg=false;
}
}
if(isFalg)
{
temp[count++]=arr[i];
}
isFalg=true;
}
int[] newArr=new int[count];
for(int i=0;i
newArr[i]=temp[i];
}
return newArr;
}