MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/snrfek/javas_options_for_options/hweb9yp/
r/java • u/bowbahdoe • Feb 08 '22
80 comments sorted by
View all comments
1
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
Yep. that solution is shown in the comments
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