0

WAP in java to find unique elements in the given integer array ??

find and print unique elements

25th Feb 2017, 11:56 AM
manish
manish - avatar
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]);) }
3rd Mar 2017, 8:03 PM
Qwerty