sorry if i confusing, i have two arraylist as below
al1 - [Consignment, Bank, Custodian, Rejected, Bank]
al2 - [[2, 0, 0, 0, 0, 0, 0],
[6, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0],
[4, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0, 0]]
1st element al2 is for 1st element al1, and so on
so my case is i have to check al1 there is any duplicate value, if have have combine the value in al2
so expected result is
al1 - [Consignment, Bank, Custodian, Rejected]
al2 - [[2, 0, 0, 0, 0, 0, 0],
[6, 1, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0],
[4, 0, 0, 0, 0, 0, 0]]
i’m trying but would like to get fast solution
thanks in advance
Finally I found the solution shown below: