0
Public static void main(String ...hello){}
above method. whats is the that "..." , what they doing ?
6 ответов
+ 3
Looks like an array notation from some languages. It just the same as
main (String[] hello) {}
+ 5
Pseudo code:
// array notation
var a = func (["arg1", "arg2", "arg3"]);
// triple dot notation
var a = func ("arg1", "arg2", "arg3");
+ 3
If you use array notation [] you must give an array as argument for function call, when using triple dot notation (probably) you can pass separeted arguments, that will be used to craft an array
+ 2
Martin Taylor it's always fun but informative as well reading your answers 😂😂😂,
0
thx, wht s the difference btwn both ?
0
thax a lot for ur information