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