News

This post explains how to call a method in Java. Learn how to define methods, call them from other classes, and pass arguments!
If you are calling a method on an existing object, you can use object::method rather than x -> object.method(x). Next, we’ll consider a more complex scenario for instance method references.
After reading this section, check out Method References in Java 8 (Toby Weston, February 2014) for more insight into method references in bound and unbound non-static method contexts.