@@ -0,0 +1,300 @@
+package com.yutax77.java8_ans.chap3;%0A%0Aimport java.util.List;%0Aimport java.util.function.Function;%0Aimport java.util.stream.Collectors;%0A%0Apublic class Ans20 %7B%0A    public %3CT, U%3E List%3CU%3E map(List%3CT%3E list, Function%3CT, U%3E function) %7B%0A%09return list.stream().map(function).collect(Collectors.toList());%0A    %7D%0A%7D%0A

Answer chap.3-20