Hi. I'm using ArrayList and i add data in specific indexes, how can i check if a specific index exists ?
should i just get() and check the value or wait for an exception or is there another way ?
update
thank you for your answers but i add stuff in specific indexes
once i will add at index 8, other times at index 2. the length of the list will not show me the available indexes.