why do I get an ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0? : <p>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.</p>

<pre><code>`public class USCrimeLibrary  

 public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    USCrimeObject crimeObject = new USCrimeObject(args[0]); `
</code></pre>

<p>and the reference object:</p>

<pre><code>`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);
}`
</code></pre>
