Having a object that has 3 properties:
Item
String date;
int value1;
int value2;
I have first ArrayList<Item>
listA which contains:
2017-01-18, 0, 0
2017-01-17, 0, 0
2017-01-16, 0, 0
2017-01-15, 0, 0
Second ArrayList<Item>
listB which contains:
2017-01-18, 7, 3
2017-01-15, 4, 0
I want to combine both lists, into a final one, having the values summed by same date
2017-01-18, 7, 3
2017-01-17, 0, 0
2017-01-16, 0, 0
2017-01-15, 4, 0