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[] args) {
        Integer[] numbers = { 1, 2, 3, 4 };
        Stream<Integer> arrayStreams2 = Arrays.stream(numbers);

        System.out.println(Arrays.toString(arrayStreams2.toArray()));
    }

}