Sunday, 18 August 2013

Merge/Join two List

Merge/Join two List

I have two Lists as below:
List<Tuple> tuple1, List<Tuple> tuple2
Where each Tuple is having two values : ID, COUNT
Now I have to merge tuple1 and tuple2 and store them List
ClassA is:
public class ClassA{
private int id; //matches tuple1.ID / tuple2.ID
private int count1; //matches tuple1.COUNT
private int count2; //matched tuple2.COUNT
.....
}
Can you guys help me to merge this with Java? Thanks in advance.

No comments:

Post a Comment