This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have compare 2 arrays if they have same value then nothing has to done it array A contains and array B does not the have that value then write an insert statement and if array B contains and array A does not contain then write delete statement.
Can this be done in single loop or 2 loops. Can anybody help me to write this logic.
Will you process your items in sorted order? That becomes the classic master-update problem back from the days of punch cards when there was no random access and we had to process cards in sequence. It works on infinitely large datasets by reading from two sources (stacks of cards) without holding arrays of items in memory.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Nov 12, 2004
Thanks...but can u please have look what I did is correct...I am unable to use collection for second iteration ......
SelectedRoles is HashMap----that can be see in code SelectedGroupRoles is String array