string [] <--what is the meaning of "[ ]" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

string [] <--what is the meaning of "[ ]"

And why does 'string[] args' have to be there if its the only thing valid 😒

21st Jan 2017, 3:18 AM
Piday 3.14159 265358
Piday 3.14159 265358 - avatar
2 Answers
+ 1
args is basically an array of type String. It's used to contain command-line arguments. The square brackets indicate that it's an array. If you're a beginner programmer, I would suggest not worrying about it until you learn more about arrays.
21st Jan 2017, 3:37 AM
Will Lewis
Will Lewis - avatar
0
Thx
22nd Jan 2017, 12:10 AM
Piday 3.14159 265358
Piday 3.14159 265358 - avatar