I have a java class which has a List as following:
public class TestEntity {
private String name;
private List<DataEntry> dataEntries;
}
class DataEntry {
private String para1;
private String para2;
private String para3;
}
How could i add a DataEntry's instance into a TestEntity's instance?