title: args.length and command line arguments
body: <p>I got confused with how to use <code>args.length</code>, I have coded something here:</p>
  <pre class="lang-java prettyprint-override"><code>public static void main(String[] args) {
      int[] a = new int[args.length];
  
      for (int i = 0; i &lt; args.length; i++) {
          System.out.print(a[i]);
      }
  }
  </code></pre>
  <p>The printout is <code>0</code> no matter what value I put in command line arguments, I think I probably confused <code>args.length</code> with the <code>args[0]</code>, could someone explain? Thank you.</p>