What is the best way to get value from java.util.Collection by index?
java.util.Collection
Convert the collection into an array by using function
Object[] toArray(Object[] a)