I am trying to find the index of an array. My array is the following:

```
char[] closingBrackets = { ')', ']', '}', '>' };

```

when I do:

```
int i =  openingBrackets.indexOf(']');

```

or

```
int i =  openingBrackets.indexOf(]);

```

Eclipse gives me an error then recommending that I change it to openingBrackets.length which is not what I want.

I want in this case for i to hold the value 1 since it is the second item in the array. Where am I going wrong? Or is there another library that I should be using to find this?