I have a List of Images
List<Image> images = getImages();
Image.java
public class Image {
private String imageId;
// getter and setter methods
// ...
}
And I have a List<String> imageIds to replace the imageId in each Image object. What would be the best way to do it?