Hi i am getting the data and i am iterating the loops using for
loops.
I am having 2 arrays like
A = [{"id":1, "name":ramu},{"id":2, "name": noran},{"id":3, "name":shane}]
B = [{"id":3, "name":shane}]
I have iterated this loops like
for(userObj A : obj) {
System.out.println(A.id);
}
for(userObj B : obj) {
System.out.println(B.id);
}
Now i want to get result of common object as in the first loop i am having some extra information
res = [{"id":3, "name":shane}]
Any help in java?