+ 1

string[] args in main class

Why a “string[] args”? Everything works without it in main

1st Aug 2019, 4:10 AM
Ilya Shihov
Ilya Shihov - avatar
2 Antworten
+ 2
You are allowed to provide an array of strings as start up arguments. An empty array is also valid.
1st Aug 2019, 7:03 AM
Sonic
Sonic - avatar
+ 1
What's different? If the program works without it, then why in all the examples in the training here is present?
1st Aug 2019, 7:07 AM
Ilya Shihov
Ilya Shihov - avatar