ddachkinov / Collection-Exercises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collection_Exercises

  1. create a new array list, add some colors (string) and print out the collection.
  2. iterate through all elements in a array list.
  3. insert an element into the array list at the first position.
  4. retrieve an element (at a specified index) from a given array list.
  5. update specific array element by given element.
  6. sort a given array list
  7. copy one array list into another.
  8. shuffle elements in a array list.
  9. reverse elements in a array list.
  10. extract a portion of a array list.
  11. compare two array lists.
  12. swap two elements in an array list.
  13. join two array lists.
  14. clone an array list to another array list.
  15. empty an array list.
  16. test an array list is empty or not.
  17. trim the capacity of an array list the current list size.
  18. increase the size of an array list.
  19. replace the second element of a ArrayList with the specified element.
  20. print all the elements of a ArrayList using the position of the elements.

About


Languages

Language:Java 100.0%