Hi everybody!!!
I want to get intersection of two loops. For example
Out put of this code isclass uniqueKey{ public static void main(String args[]){ for(int i=1;i<10;i++){ if(i==5 || i==6 || i==7) continue; System.out.println(i); } } }
1
2
3
4
8
9
Now scenario is something like this:
Suppose 5,6 and 7 are coming from database in a while loop and we want to print only those values that are not coming from database say from 1 to 10. I tried a lot but no success. Plz help me in this regard.....