package com.insightfullogic.java8.answers.chapter5;

import java.util.List;
import java.util.stream.Stream;

import static java.util.stream.Collectors.toList;

public class Question1 {

	public List<String> question1_a(List<String> strings) {
		return strings.stream().map(String::toUpperCase).collect(toList());
	}

	public int question1_b(List<Integer> integers) {
		return integers.stream().reduce(0, Integer::sum);
	}
}

@@ -430,12 +430,181 @@
 m);%0D%0A%09%7D%0D
+%0A%0D%0A%09public List%3CInteger%3E question1_c(List%3CInteger%3E data1, List%3CInteger%3E data2) %7B%0D%0A%09%09return Stream.of(data1, data2).flatMap(List%3CInteger%3E::stream).collect(toList());%0D%0A%09%7D%0D
 %0A%7D%0D%0A

add question 1_c in chapter5