@@ -0,0 +1,453 @@
+package com.insightfullogic.java8.examples.chapter7;%0D%0A%0D%0Aimport java.util.List;%0D%0A%0D%0Aimport com.insightfullogic.java8.examples.chapter1.Album;%0D%0Aimport com.insightfullogic.java8.examples.chapter1.Track;%0D%0A%0D%0Apublic class CountLength %7B%0D%0A%0D%0A%09public long countRunningTime(List%3CAlbum%3E albums) %7B%0D%0A%09%09long count = 0;%0D%0A%09%09for (Album album : albums) %7B%0D%0A%09%09%09for (Track track : album.getTrackList()) %7B%0D%0A%09%09%09%09count += track.getLength();%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%09return count;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

add CountLength class for example in chapter7