I have java object containing one more object .
public class ParameterValue {
private Property property;
private String PropertyValue;
public static class Property {
private String paramName;
}
}
In my util method i get all the property names in a list
List<ParameterValue.Property> properties= getAllParameter();
List<ParameterValue> paramValues= getAllParameterValues();
which returns me only ParameterValue objets only values are set.
Now i want to get Property object from properties list and set in paramvalues list creating a full object. How can i do it. Is it possible to iterate over 2 lists
use the standard forloop: