Converting a String array into an int Array in java
<p>I am new to java programming. My question is this I have a string array but when I am trying to convert it to an int 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>
