return i;
return index;
    public int getIndex(Array n) throws Exception {        int i = -1;        Array names = getNames();        if (names != null) {            Array name = null;            while (i < names.getSize()) {                name = names.get(i);                // If a null name is reached, then the name was not found.                if (name == null) {                    break;                                } else {                    // If a name equal to the searched one is found,                    // then its index is the one to be returned.                    if (name.isEqualTo(n)) {                        break;                    }                }                i++;            }        } else {            throw new Exception("Could not get index. The names is null.");        }        return i;    }