The target type of this expression must be a functional interface in MethodReferences
Because that’s a method reference, the usage is a bit different: The argument that the consumer takes (s) will be still passed to the println method. here is Oracle’s tutorial on this.