package com.insightfullogic.java8.examples.chapter7;

import java.util.List;
import java.util.logging.Logger;

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

public class Testing {

	private static final Logger logger = Logger.getLogger("LambdaTesting");

	public static List<String> allToUpperCase(List<String> words) {
		return words.stream().map(string -> string.toUpperCase()).collect(toList());
	}

}

@@ -416,11 +416,615 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09public static List%3CString%3E elementFirstToUpperCaseLambdas(List%3CString%3E strings) %7B%0D%0A%09%09return strings.stream().map(string -%3E %7B%0D%0A%09%09%09char firstChar = Character.toUpperCase(string.charAt(0));%0D%0A%09%09%09return firstChar + string.substring(1);%0D%0A%09%09%7D).collect(toList());%0D%0A%09%7D%0D%0A%0D%0A%09// %D6%B7%D7%AA%C8%A1%CE%AA%C4%BA,%C8%BF%CA%B5%D6%B5%0D%0A%09public static String firstTpUpperCase(String string) %7B%0D%0A%09%09char firstChar = Character.toUpperCase(string.charAt(0));%0D%0A%09%09return firstChar + string.substring(1);%0D%0A%09%7D%0D%0A%0D%0A%09public static List%3CString%3E elementFirstToUpperCase(List%3CString%3E strings) %7B%0D%0A%09%09return strings.stream().map(Testing::firstTpUpperCase).collect(toList());%0D%0A%09%7D%0D%0A
 %7D%0D%0A

add example for unit test