title: java how to pass string argument to main
body: <p>How I can pass string argument that the user gives from the command Line to the main?</p>
  
  <pre><code>public static void main( String[] args )
  </code></pre>
  
  <p>for example user writes in the command line : string1 string2 </p>
  
  <p>How I can read the string2 and save it to a String variable to main?</p>