in reply to how do I find one number that matches in elements of same array and combine those elements?
Please post code that compiles (and put it in code tags), so we can know exactly what you have, without guessing.