Says I keep going out of bounds lines ([32],[36])I have changed almost everything I can think off. Any suggestions?

```
public class FindMaxRecursive {

    public static void main(String[] args) {
        Scanner kbd = new Scanner(System.in);
        int[] a = new int[5];
        System.out.println("Enter 5 integers: ");
        int i;

        for (i = 0; i < 5; i++) {
            a[i] = kbd.nextInt();
        }
        System.out.println("largest element in array: " + findMax(a, i));
    }

    public static int findMax(int[] a, int i) {
        if (i > 0) {
            // exception on the next line
            return Math.max(a[i], findMax(a, i + 1)); 
        }

        else {
            return a[0];
        }
    }
}

```

Input, output & exception:

```
Enter 5 integers: 
1 2 3 4 5
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
    at Snippet.findMax(Snippet.java:19)
    at Snippet.main(Snippet.java:14)

```

At `findMax` within the `if` statement.