how to get the index of a value in an arraylist code example Example: arraylist get value at index java get(index);