I keep an error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0" even though i've referenced this array bounds in the method.
`public class USCrimeLibrary
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
USCrimeObject crimeObject = new USCrimeObject(args[0]); `
and the reference object:
`public class USCrimeObject {
private Crime[] crimes;
String fileName = "/Users/jpl/Developer/Java/CMIS141/WK8/Crime.csv";
public USCrimeObject(String fileName) {
this.crimes = new Crime[20];
readFile(fileName);
}`