You are viewing a single comment's thread. Return to all comments →
int count=0; int a[]={1,2,3,4,5,6}; int b[]={2,3,4,5,6,7,8}; for(int i=0;i<a.length;i++) { for(int j=0;j<b.length;j++) { if(a[i]==b[j]) { count++; } }
} System.out.print(count); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Basics of Sets and Relations #2
You are viewing a single comment's thread. Return to all comments →
} System.out.print(count); } }