hi,
First of all, my english is not good and I'm new at java.
I have two different classes as shown below, and 2 lists
How can I compare these two lists without iterative code?
I need a new list which is support this condition
if (a.id = b.rowNumber)
List<class A> list1; List<class B> list2;
public class A { private int id; private String description; getters... setters... ctor... }
and
public class B { private int rowNumber; private String description; private double price; private String adress; getters... setters... ctor... }
thanx...