Using Google Guava (Google Commons), is there a way to merge two equally sized lists into one list, with the new list containing composite objects of the two input lists?
Just pretend this is a Guava method:
for (int i = 0; i < names.size(); i++) { persons.add(new Person(names.get(i), ages.get(i))); }