BlacK DeviL
New Member
I am trying to create a loop that goes through the elements of a 2-D array and split each element. I am currently getting a " java.lang.ArrayIndexOutOfBoundsException: 0" error with this code on the split line. I want to take the 2nd part of the split line and use that with the rest of my program. Also if I don't put an integer in the 2nd array box I get an error expecting an argument there.\[code\]String[][] arr = new String[numLines.size()][];for(int i = 0 ; i < numLines.size(); i++) { arr[1].split("--", 2); ......\[/code\]