title: String args[] as an input for a method java
body: <p>I have this code and I am wondering what String args[] means here and how it can be used as an input I read many online comments but still confused about this thanks</p>
  
  <pre><code> static int parse_commandline(String args[]) {
  
          // TODO range check
  
          if (args.length == 0) {
              System.err.println("No options are specified.");
              System.err.println("Try `--help' for more information.");
              System.exit(1);
          }
  
          Options options = new Options();
          options.addOption("r", "tries", true, "# number of independent trials");
          options.addOption("s", "tours", true, "# number of steps in each trial");
          options.addOption("t", "time", true, "# maximum time for each trial");
          options.addOption("seed", true, "# seed for the random number generator");}
  </code></pre>