I am trying to convert below for-loop to forEach method with help Stream function using Java1.8, but I was messed up and also confused to do that.

```
List<A> valueList = new ArrayList<>();
List<B> responseList = getResponses();
List<A> value = new ArrayList<>();

for (B getResponse: responseList) {
    valueList = getValues(getResponse);
    value.addAll(valueList);
}

```