Nieuws

You cannot do this directly, but you can wrap a method in an class, instantiate it, and then pass the object. One way to do this would be with an internal class.
Here's how to make classes, fields, methods, constructors, and objects work together in your Java programs.
The last quote implies that we could see some handy utility methods added to a java.util.Objects class that would be generally beneficial to a wide number of Java developers.
Is it poor programming practice to pass parameters as objects? Are you making code more maintainable? Or just covering up poorly defined methods?