Lambda without any return value in Java

Consumer<Integer> add2AndPrint = a -> System.out.println(a + 2);
add2AndPrint.accept(5);
//printed 7