#what does no parameter list in Java method mean

1 messages · Page 1 of 1 (latest)

fickle duneBOT
#

<@&987246399047479336> please have a look, thanks.

fickle duneBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

remote atlas
#

wdym by no parameter list?

#

u mean List.of()?

#

it makes an empty list

#

it will return an empty list

#

there is no arguments

#

if u pass arguments it'll give back a list with those arguments

opal trout
#

i think OP means in general, not just related to List
you always need the () even if there is nothing in there. it has no special meaning other than "this calls a method or constructor that has takes no parameters"