title: Converting a String array into an int Array in java
body: <p>I am new to java programming. My question is this I have a <code>String</code> array but when I am trying to convert it to an <code>int</code> array I keep getting</p>
  
  <pre><code>java.lang.NumberFormatException
  </code></pre>
  
  <p>My code is </p>
  
  <pre><code>private void processLine(String[] strings) {
      Integer[] intarray=new Integer[strings.length];
      int i=0;
      for(String str:strings){
          intarray[i]=Integer.parseInt(str);//Exception in this line
          i++;
      }
  }
  </code></pre>
  
  <p>Any help would be great thanks!!!</p>