Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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));
    }
}