I am having a Order entity which contains list of items with in it, from that I need to loop list of orders and each order contains list of items, i need to extract Items alone from that items i need to extract single item quantity here my code
public class order{
private Integer orderId;
private String orderNo;
.
.
private List<item> items;
.
.
.
}
public class item{
private Integer itemId;
private String itemCode;
private String itemDescription;
private BigDecimal cost;
.
.
.
}
How to iterate this in java8?