Java, the main method parameters String [] args use.

For the main method in Java

Public static. 1 void main (String [] args) {}   
 2 public static void main (String args []) {}    // Both versions are the same, expressed array of strings

The reason must write String args [] is a Java provisions, the provisions of the main function main method parameters must be an array of strings (String []), variable names are free, that is commonly used args arguments ( "parameters" in the plural form) abbreviation.

Guess you like

Origin www.cnblogs.com/lipu12281/p/12097557.html