Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] args) { Arrays.asList(1, 20, 40, 4).stream().filter(n -> n < 30).map(n -> "number: " + String.valueOf(n)) .forEach(n -> System.out.println(n)); } }