0
WAP in java to find unique elements in the given integer array ??
find and print unique elements
1 ответ
+ 1
for(int i=0;I<array.lengh();I++){
int A=array[I];
int total=-1;
for(int j=0;j<array.lengh();j++){
int B=array[j]
if(B==A){total++;}
}
if(total==0){System.out.println("Unique: "+array[I]);)
}