Suppose I have a class Transaction:
public class Transaction {
private String tId;
private String tStatus;
}
Now I create another class Customer:
public class Customer {
private String cId;
private List<Transaction> transaction;
}
Now, if I get a String list of tIds and a separate String list of tStatus, how do I merge these two lists to make Transaction type List in Java?