radhika1
8 years agoContributor
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]);
}