convert type Nested List in another type using Java 8, using Stream

Keywords: java-8 java-stream nested-lists

Question: 

I have a nested List

TypeOne has a method TypeTwo getTypeTwo() { return typeTwo;}

List<List<TypeOne>> nestedListsTypeOne = someMethodPopulate();

nestedListsTypeOne.stream()
.foreach(listTypeOne -> map(TypeOne -> TypeOne::getTypeTwo))
.HereIHavingProblem

But, I don't know how to do it.

What is the efficient manner convert nested list type into another type?

Answers: