Follow

@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:
stackify.com/optional-paramete

@trinsec

The tricks on the page is not applied to constructor or I already applied accessors

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.