Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;
import java.util.function.Function;

public class Main {
    public static void main(String[] argv) {
        Function<Integer, int[]> arrayCreator3 = int[]::new;
        int[] intArray = arrayCreator3.apply(5);
        System.out.println(Arrays.toString(intArray));
    }
}