@Acer Whatever the language, shouldn't the function be able to have an 'optional input' so you can set a default if no input is found?
@Acer Looks like Java doesn't have optional parameters. Another reason for me to try to forget this language even exists. ;)
Java does have some tricks to mimic this. Check this page, it gave me some idea about those tricks:
https://stackify.com/optional-parameters-java/
@trinsec
The tricks on the page is not applied to constructor or I already applied accessors