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

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

add question 1_b in chapter5