import java.util.*; import java.util.stream.*; public interface Java8Example { default void hello() { List words = Arrays.asList("Hello", "World", "hi"); System.out.println(words); List words2 = words.stream().filter((String s) -> s.length() > 2).collect(Collectors. toList()); System.out.println(words2); } }