+ 1

In java programming, I've seen people using (String...args) instead of (String[ ]args).

But I've never come across such alternative in my books. Can anyone justify its use? https://code.sololearn.com/cyeiKE7nfy73/?ref=app

28th Sep 2018, 4:21 PM
NilishaB
NilishaB - avatar
2 Respostas
+ 2
I'm not going to pretend to completely understand this answer, so maybe someone can parse it and explain it here: https://stackoverflow.com/questions/27689220/why-cant-we-just-use-arrays-instead-of-varargs
28th Sep 2018, 4:43 PM
Kirk Schafer
Kirk Schafer - avatar
+ 6
LukArToDo explains this very well in one of her codes https://code.sololearn.com/cxQRlmdcY73I/?ref=app
28th Sep 2018, 4:39 PM
D_Stark
D_Stark - avatar