sum of arraylist java 8

Java
int total = numbers.stream().mapToInt(i -> i.intValue()).sum();
		System.out.print(total);
Source

Also in Java: