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