84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
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