124k views
3 votes
Do collections allow backward traversing of data?​

User Tourniquet
by
7.8k points

1 Answer

1 vote

Answer:

╭┄┈┄────────❥Yes, collections does allow backward traversing of data just likewe can iterate a collection with from front with the index position being 0. In reverse traversing we start from the last element whose index position is -1

User Bryce Frank
by
7.4k points