package com.insightfullogic.java8.answers.chapter5;

import java.util.List;
import java.util.Map;

import static java.util.stream.Collectors.counting;
import static java.util.stream.Collectors.groupingBy;

public class WordCount {

	public static Map<String, Long> countWords(List<String> strings) {
		
		//ע,ʹname -> name
		return strings.stream().collect(groupingBy(name -> name, counting()));
	}
}

add WordCount solution for chapter5