Forum Discussion

radhika1's avatar
radhika1
Contributor
8 years ago

Array out of bound exception

Hi,

I am getting array out of bound exception for the below code.

 

import java.io.File;
import java.util.*;
import java.lang.*;

List<String[]> rows = new ArrayList<String[]>();
File f = new File ("C:/Users/xw66/Documents/dev/radhika/Properties.txt").eachLine{
//line->log.info("$line");
line->"$line";
String [] a = line.split('=')
log.info(a[0]+""+a[1]);
}