I have two ArrayLists of different size.
ArrayList<String> names = new ArrayList<String>();
ArrayList<User> users = new ArrayList<User>();
User is an Object with attributes name and address. I want to get the addresses where the names of the User object stored in ArrayList users is the same as the names stored in the ArrayList names.
Is this possible? If so, how?
1 Answer