package com.insightfullogic.java8.answers.chapter5;

import java.util.List;

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());
	}
}

@@ -71,16 +71,49 @@
 l.List;%0D
+%0Aimport java.util.stream.Stream;%0D
 %0A%0D%0Aimpor
@@ -320,12 +320,122 @@
 ));%0D%0A%09%7D%0D
+%0A%0D%0A%09public int question1_b(List%3CInteger%3E integers) %7B%0D%0A%09%09return integers.stream().reduce(0, Integer::sum);%0D%0A%09%7D%0D
 %0A%7D%0D%0A

add question 1_b in chapter5