Skip to the content.
Home Replit code Tech Talk 0 Tech Talk 1 Tech Talk 2 Tech Talk 3

Tech Talk 1:

Link to code: https://github.com/yajatyadav/Yajat_Challenges/tree/master/src/com/company/TT1_all T is the iterator variable. Iterators are used to retrieve elements one by one. Every class that implements Iterable interface appropriately, can be used in the enhanced For loop (for-each loop). The need to implement the Iterator interface arises while designing custom data structures. a linked list consists of nodes where each node contains a data field and a reference(link) to the next node in the list. Advantages over arrays Dynamic size Ease of insertion/deletion