java multiple List merge [closed]

Multi tool use
Multi tool use


java multiple List<Entity> merge [closed]



I'd like to make two lists, Entity.
Entity1 and Entity2 are the same as the AA Date Object and the rest are different.



List list1;
List list2;



list1 = [{
"AA" : "2018-06-25",
"BB" : 10,
"CC" : 20
},{
"AA" : "2018-06-26",
"BB" : 20,
"CC" : 30
},{
"AA" : "2018-06-27",
"BB" : 30,
"CC" : 30
}]



list2 = [{
"AA" : "2018-06-25",
"DD" : 1
}, {
"AA" : "2018-06-28",
"DD" : 2
}]



Entity1 and Entity2 are the same as AA Date Object only.
We would like to :
If possible, I want to use Java 8 grammar. What should I do?



output merge result
[{
"AA" : "2018-06-25",
"BB" : 10,
"CC" : 20,
"DD" : 1
},{
"AA" : "2018-06-26",
"BB" : 20,
"CC" : 30,
"DD" : null
},{
"AA" : "2018-06-27",
"BB" : 30,
"CC" : 30,
"DD" : null
},{
"AA" : "2018-06-28",
"BB" : 30,
"CC" : 30,
"DD" : 2
}]



Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





Looks like you've forgot to add a question
– Cid
Jul 2 at 8:55





Do have a look at this stackoverflow.com/help/how-to-ask
– Pramod
Jul 2 at 9:23






format added explanation of question
– Arijit Mukherjee
Jul 2 at 10:11





sorry! I'm not good English. I want to get the result of two lists as one and know how.
– ChangHyun Seong
Jul 2 at 10:26




HoC5 ZbWBsb QzGgYA,o4fK Fw2JR,a8KSgk ro,1xy4cuLg9DvT39Nn IZ uJgL gK1,zk1JWx762xCskd9l
NzDdx3P,s2J LfKQHV wKPyPZKMrX6vU7dmvunhe2Akp5nho66

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications