+ 1
What array of strings actually gets passed to the main() method?
I'm confused as to what exactly gets passed to the main() method in Java! Is it user input, etc.? Thanks!
2 Réponses
+ 3
In that example they are just telling you that an array of String type is being passsed as a parameter.
String [] the brackets indicate an array of type String.
You can pass any data type as parameters in a method.