@@ -0,0 +1,305 @@
+package com.yutax77.java8_ans.chap2;%0A%0Aimport java.util.stream.IntStream;%0Aimport java.util.stream.Stream;%0A%0Apublic class Ans4 %7B%0A    public static void intStream() %7B%0A%09int%5B%5D values = %7B1, 4, 9, 16%7D;%0A%09Stream%3Cint%5B%5D%3E intArrayStream = Stream.of(values);%0A%09%0A%09IntStream intStream = IntStream.of(1, 4, 9, 16);%0A    %7D%0A%7D%0A

Answer chap.2-4