@@ -0,0 +1,486 @@
+package com.yutax77.java8_ans.chap3;%0A%0Aimport java.util.function.BooleanSupplier;%0Aimport java.util.function.Supplier;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A%0Apublic class Ans1 %7B%0A    static Logger logger = Logger.getLogger(Ans1.class.getName());%0A    %0A    public static void logIf(Level logLevel, BooleanSupplier condition, Supplier%3CString%3E supplier)%7B%0A%09if(logger.isLoggable(logLevel) && condition.getAsBoolean()) %7B%0A%09    logger.log(logLevel, supplier);%0A%09%7D%0A    %7D%0A%7D%0A

Answer chap.3-1