Unit 7: ArrayList

Cards (12)

  • new ArrayList()
    Constructor for a new ArrayList
  • boolean add(E obj)
    Appends obj to end of list
  • E get(int index)
    Returns element at the position index
  • int size(): Returns the number of elements in the list
  • E set(int index, E obj): Replaces element at index with obj. Returns replaced element
  • E remove(int index): Removes element from position index. Subtracts 1 from size and moves elements index and higher down one index.
  • ConcurrentModificationException: A common error that occurs when attempting to modify an ArrayList while using an enhanced for loop.
  • linear search: a method for finding a target value within a list. It sequentially checks each element of the list for the target value until a match is found or until all the elements have been searched.
  • selection sort: Sorts an array by repeatedly finding the minimum value, and moving it to the front of the array.
  • privacy: the "right to be free from unwarranted intrusion and to keep certain matters from public view"
  • digital footprint: All of the information about a person that can be found online
  • network protocols: define rules and conventions for communication between network devices