Java - Merge objects of list given a condition
问题 I uttlerly convinced that my question its quite simple but im unable to do it with streams (if there is a way to do it without stream will be helpfull too) Suppose that we have this list of users public class Users { String firstName; String lastName; double accountBalance; String type; String extraField; } and suppose that we have the following data in my List < Users > "Users": [{ "firstName": "Scott", "lastName": "Salisbury", "accountBalance": "100", "type" : "A" }, { "firstName": "John",