how to get list of all indexes in an arraylist java code example Example: arraylist get value at index java get(index);