2 ms·Sure, the other way is this; Arrays.stream(new int[] { 1,2,3 }).sum();by yarper 11y agoSure, the other way is this; Arrays.stream(new int[] { 1,2,3 }).sum();