Ask me, does anyone know?
ringa_lee
If you don’t know, then you think you must.
This thing is inherited from the unix (C) command.
Normally, the main function of a C program is
普通情况下这么写 int main(int argc char **argv) 有些情况下这么写 int main(int argc, char *argv[], char **env) argc为参数数目 argv为字符串数组。 char **argv = char *argv[] = char argv[][]
You can think that in terms of the main function, java is just a layer of packaging, that is, the java packaging only cancels argc and replaces argv from a two-dimensional character matrix to a string array.
java’s args = C’s **argv, C’s argc = java’s args.count() (or args.length())
The variable name can be changed, but the String array type cannot be changed. . . .
It can also be String... argshaha
If you don’t know, then you think you must.
This thing is inherited from the unix (C) command.
Normally, the main function of a C program is
You can think that in terms of the main function, java is just a layer of packaging, that is, the java packaging only cancels argc and replaces argv from a two-dimensional character matrix to a string array.
java’s args = C’s **argv,
C’s argc = java’s args.count() (or args.length())
The variable name can be changed, but the String array type cannot be changed. . . .
It can also be String... args
haha