Java Collections Framework – List – Linkedlist: return/replace an element at a position

preview_player
Показать описание
This video is part of playlist
"Java Collections Framework: List"
and uses programming concepts explained in playlist
"Stack & Heap Memory Fundamentals”

Bookmarks:
00:27 Sample code
01:01 LinkedList instantiation
01:36 get()
02:12 node() : iterating to the correct position
04:21 Performance of get (Big O notation)
04:42 Unboxing
05:35 set()
07:39 Performance of set (Big O notation)
08:40 To resume

In this demo I’ll examine the implementation of following methods implemented in the Linkedlist class:
public E get(int index)
- Returns the element at the specified position in this list
public E set(int index, E element)
- Replaces the element at the specified position in this list with the
specified element

Previous video
Java Collections Framework – List – Linkedlist: insert/remove an element at a position and clear
Next video:
Java Collections Framework – List – Conclusion
Рекомендации по теме
welcome to shbcf.ru