@@ -0,0 +1,409 @@
+package com.insightfullogic.java8.answers.chapter5;%0D%0A%0D%0Aimport java.util.HashMap;%0D%0Aimport java.util.Map;%0D%0A%0D%0Apublic class Fibonacci %7B%0D%0A%0D%0A%09private final Map%3CInteger, Long%3E cache;%0D%0A%0D%0A%09public Fibonacci() %7B%0D%0A%09%09cache = new HashMap%3C%3E();%0D%0A%09%09cache.put(0, 0L);%0D%0A%09%09cache.put(1, 1L);%0D%0A%09%7D%0D%0A%0D%0A%09//%E7%BB%AD,%C8%BB%C8%B1%D9%BD%D7%B3%D4%B4%CA%A9%0D%0A%09public long fibonacci(int x) %7B%0D%0A%09%09return cache.computeIfAbsent(x, n -%3E fibonacci(n - 1) + fibonacci(n - 2));%0D%0A%09%7D%0D%0A%7D%0D%0A

add Fibonacci class for chapter5.Beautiful