Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] argv) {
        Stream.of("This", "is", "Java8", "Stream").forEach(System.out::println);

        String[] stringArray = new String[] { "Streams", "can", "be", "created", "from", "arrays" };
        Arrays.stream(stringArray).forEach(System.out::println);
    }
}