title: java: sums up the number using command line arguments
body: <p>About sums up the number using command line arguments.<br/>
  For example</p>
  
  <pre><code>    java  sum  "1 2 3"    &lt;--"1 2 3" will be args[0]
      the sum is 6
  </code></pre>
  
  <p>How can i calculate it?<br>
  I want the code of this program.
  Thank<br>
  This code only can calculate when i input<br>
  java  sum 1 2 3<br>
  but i want input<br>
  java  sum  "1 2 3"</p>
  
  <pre><code>public class sum {
  public static void main( String args[] ) {
  int num=0;
  for(int i=0; i&lt;args.length; i++){
     num+= Integer.parseInt(args[i]);
  }
  
    System.out.println("The sum is " + num);
     }
  }
  </code></pre>