Home > Java > javaTutorial > Command line parameters in Java development

Command line parameters in Java development

无忌哥哥
Release: 2018-07-23 09:30:45
Original
1669 people have browsed it

Command line parameters

  • Main method of Java application (entry of program)

                                                                                                                           ​ When starting a Java application, you can pass 0~more parameters to the application at one time----Command line parameters

    Command line parameter usage format: java ClassName lisa "bily" "Mr Brown"
  • from the parameter ARGS to receive the space to separate the parameters. If the parameter contains the space, it is caused by the dual quotes

  • command line parameters. "Mr Brown" //Output result: args[0] = lisa args[1] = bily args[2] = Mr Brown

Eclipse

The above is the detailed content of Command line parameters in Java development. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template