int[] a = {10, 20, 30, 40};
Stream.of(a).forEach(System.out::println);
for this code, i'm expecting the output (the values): 10 20 30 40
But it is printing (the reference): [I@6d86b085
Am I missing anything (or) any changes in the Streams?