For this question, assume "collection" is a List. Which of the following will return the last element in the list?

collection.get(collection.size() - 1);
  • collection.get(0);
  • collection.get(1);
  • collection.get(collection.size());

Remember that an ArrayList of n items starts at 0 and goes to n-1