title: ArrayIndexOutOfBoundsException - command-line argument
body: <p>Hi guys! I have some problems with arg's array.</p>
  
  <p>the Error that program give me is:  </p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at file1.main(file1.java:14)</p>
  </blockquote>
  
  <p>my program is:</p>
  
  <pre><code>public class FC1{
      public static void main (String[]arg){
        String[] primoArray = new String[10];
        primoArray[0] = arg[1];
        primoArray[1] = arg[2];
      }
  }
  </code></pre>
  
  <p>can you help me??</p>