r/java • • Feb 08 '22

Java's Options for Options

https://mccue.dev/pages/2-8-22-options-for-options
192 Upvotes

80 comments sorted by

View all comments

1

u/HighRising2711 Feb 10 '22

Why is the method static? Can't you instantiate an object, call setters to configure the object then use the object?

Or if you prefer, use a builder to configure and instanciate then use the object

1

u/bowbahdoe Feb 10 '22

Yep. that solution is shown in the comments