Java Collection Tutorial - List Example








Method

  1. Java List.add(E e)
  2. Java List.add(int index, E element)
  3. Java List.addAll(Collection c)
  4. Java List.addAll(int index, Collection c)
  5. Java List.clear()
  6. Java List.contains(Object o)
  7. Java List.containsAll(Collection c)
  8. Java List.equals(Object o)
  9. Java List.get(int index)
  10. Java List.hashCode()
  11. Java List.indexOf(Object o)
  12. Java List.isEmpty()
  13. Java List.iterator()
  14. Java List.lastIndexOf(Object o)
  15. Java List.listIterator()
  16. Java List.listIterator(int index)
  17. Java List.remove(int index)
  18. Java List.remove(Object o)
  19. Java List.removeAll(Collection c)
  20. Java List.retainAll(Collection c)
  21. Java List.set(int index, E element)
  22. Java List.size()
  23. Java List.subList(int fromIndex, int toIndex)
  24. Java List.toArray()
  25. Java List.toArray(T[] a)